Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tsconfig-files with composite set to true fail to build #269

Open
manuth opened this issue Oct 4, 2020 · 6 comments
Open

tsconfig-files with composite set to true fail to build #269

manuth opened this issue Oct 4, 2020 · 6 comments
Labels

Comments

@manuth
Copy link
Contributor

manuth commented Oct 4, 2020

General

When building a TypeScript-project with composite: true TypeScript tries to find a path to store the .tsbuildinfo-file.
This process fails with following error-message while running browserify:

Paths must either both be absolute or both be relative

Stacktrace:

[00:13:28] Error: Debug Failure. False expression: Paths must either both be absolute or both be relative
    at Object.getRelativePathFromDirectory (C:\Users\Manuel\Documents\GitHub\MarkdownConverter\node_modules\typescript\lib\typescript.js:7085:18)
    at Object.getTsBuildInfoEmitOutputFilePath (C:\Users\Manuel\Documents\GitHub\MarkdownConverter\node_modules\typescript\lib\typescript.js:97136:55)
    at verifyProjectReferences (C:\Users\Manuel\Documents\GitHub\MarkdownConverter\node_modules\typescript\lib\typescript.js:105057:71)
    at verifyCompilerOptions (C:\Users\Manuel\Documents\GitHub\MarkdownConverter\node_modules\typescript\lib\typescript.js:104824:13)
    at Object.createProgram (C:\Users\Manuel\Documents\GitHub\MarkdownConverter\node_modules\typescript\lib\typescript.js:103094:9)
    at Host._compile (C:\Users\Manuel\Documents\GitHub\MarkdownConverter\node_modules\tsify\lib\Host.js:217:7)
    at Tsifier.compile (C:\Users\Manuel\Documents\GitHub\MarkdownConverter\node_modules\tsify\lib\Tsifier.js:188:27)
    at Tsifier.generateCache (C:\Users\Manuel\Documents\GitHub\MarkdownConverter\node_modules\tsify\lib\Tsifier.js:174:8)
    at DestroyableTransform.flush [as _flush] (C:\Users\Manuel\Documents\GitHub\MarkdownConverter\node_modules\tsify\index.js:88:12)
    at DestroyableTransform.prefinish (C:\Users\Manuel\Documents\GitHub\MarkdownConverter\node_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:138:10)

Workaround

Set tsBuildInfoFile to any value.

@cartant cartant added the wontfix label Oct 5, 2020
@cartant
Copy link
Contributor

cartant commented Oct 5, 2020

Incremental TypeScript compilation is not supported.

@manuth
Copy link
Contributor Author

manuth commented Oct 5, 2020

Incremental TypeScript compilation is not supported.

My project contains references and therefore requires composite: true to be set.
Are typescript projects with references not supported either?

@cartant
Copy link
Contributor

cartant commented Oct 5, 2020

None of the project related features added in Typescript 3.0 are supported. I've not used tsify for years, now, and don't have the time to add features - or even to investigate whether or not supporting specific features is possible.

@manuth
Copy link
Contributor Author

manuth commented Oct 5, 2020

Got it! Thanks for taking time to answer to my issue though

@CheyenneForbes
Copy link

None of the project related features added in Typescript 3.0 are supported. I've not used tsify for years, now, and don't have the time to add features - or even to investigate whether or not supporting specific features is possible.

@cartant are you open to passing on the project to a new maintainer?

@cartant
Copy link
Contributor

cartant commented May 8, 2022

@CheyenneForbes

... are you open to passing on the project to a new maintainer?

It wouldn't be up to me and I doubt it would just be "passed on" - some level of trust would need to first be established.

If you're interested in maintaining the project, my suggestion would be to talk with some of the people in the TypeStrong organization: maybe Blake Embrey or Basarat Ali Syed.

For background, I took over maintaining tsify years ago when I was using it and needed some bug fix PRs I'd opened merged - the project's author had moved on to other things. Blake and Basarat were the people who approved and merged my PRs and, later, decided I might as well maintain it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants