-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Closed
Copy link
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue
Milestone
Description
TypeScript Version: 3.6.0-dev.20190711
Search Terms:
Code
tsc --init
touch index.ts
tsc -p tsconfig.json --incremental
Expected behavior:
No error, obviously. Note that there's no error with -b tsconfig.json
.
Actual behavior:
It throws because it expects tsconfig.json
to be an absolute path.
Error: Debug Failure. False expression: Paths must either both be absolute or both be relative
at Object.getRelativePathFromDirectory (/Users/klaus/code/test/node_modules/typescript/lib/tsc.js:12564:18)
at relativeToBuildInfo (/Users/klaus/code/test/node_modules/typescript/lib/tsc.js:76859:52)
at convertToReusableCompilerOptionValue (/Users/klaus/code/test/node_modules/typescript/lib/tsc.js:76884:24)
at convertToReusableCompilerOptions (/Users/klaus/code/test/node_modules/typescript/lib/tsc.js:76867:32)
at getProgramBuildInfo (/Users/klaus/code/test/node_modules/typescript/lib/tsc.js:76825:22)
at Object.newProgram.getProgramBuildInfo (/Users/klaus/code/test/node_modules/typescript/lib/tsc.js:76957:63)
at Object.getProgramBuildInfo (/Users/klaus/code/test/node_modules/typescript/lib/tsc.js:74728:291)
at emitBuildInfo (/Users/klaus/code/test/node_modules/typescript/lib/tsc.js:69511:32)
at emitSourceFileOrBundle (/Users/klaus/code/test/node_modules/typescript/lib/tsc.js:69484:13)
at forEachEmittedFile (/Users/klaus/code/test/node_modules/typescript/lib/tsc.js:69294:28)
Playground Link:
Related Issues:
Seems to be caused by ##31985 (@sheetalkamat)
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue