-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
tsc v3.4RC: Incremental build fails when --rootDir
passed on CLI
#30457
Comments
The cause of this is that commandLine |
Hi, In our case, some quirkiness due to the .ts being embedded in an old school Java app
In my case the fromDirectory and to args are: Edit: Hold that thought. Directly invoking tsc is not throwing up that error. I'm getting the error only via gulp-typescript, which is because --incremental is not yet supported, and in need of the API support #29978 Disabling incremental doesn't work for gulp-typescript (or at least I couldn't get it to behave), but looking into the code I found that we can avoid the issue by explicitly specifying tsBuildInfoFile:
|
I had the same problem when move to 3.4.3 Old cmd in package.json (fails with 3.4.3) "build:ts": "tsc --rootDir src/main --project tsconfig.lib.json --declaration --outDir lib", New version - works with 3.4.3 "build:ts": "tsc --rootDir $(pwd)/src/main --project tsconfig.lib.json --declaration --outDir $(pwd)/lib", BTW: |
.. I'm getting the same error ("Debug Failure. False expression: Paths must either both be absolute or both be relative.") in my 3.6 nightly builds in a project where I use It started ~ with |
TypeScript Version: 3.4.0-dev.20190316
Search Terms: incremental, False expression, both be relative
Code
Expected behavior:
Project is built successfully.
Actual behavior:
Build fails with
Error: Debug Failure. False expression: Paths must either both be absolute or both be relative
.When a project has this setup:
outDir
has value (doesn't matter if the value is from tsconfig.json or CLI)--rootDir ...
set from CLINOTE: Build is successful when
rootDir
value is set intsconfig.json
(instead of passed on CLI).So this will work:
Reproduction Link:
Project available here: https://github.com/Coridyn/ts34-incremental-issue
Related Issues: N/A
The text was updated successfully, but these errors were encountered: