We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
TypeScript Version: 3.0.1 and 2.7.2 both repro. I suspect this bug is rather old as the custom json parser was introduced in 1.8.
Search Terms:
Code
tsconfig.json:
{ "compilerOptions": { ## this comment does cause issues "types" : [ ] } }
and then tsc --project tsconfig.json
tsc --project tsconfig.json
Expected behavior:
I expect typescript to tell me what about my tsconfig file is invalid
Actual behavior:
I get a mostly unhelpful stack trace:
/home/dgoldstein/node_modules/typescript/lib/tsc.js:9382 return id.length >= 3 && id.charCodeAt(0) === 95 && id.charCodeAt(1) === 95 && id.charCodeAt(2) === 95 ? id.substr(1) : id; ^ TypeError: Cannot read property 'length' of undefined at Object.unescapeLeadingUnderscores (/home/dgoldstein/node_modules/typescript/lib/tsc.js:9382:19) at convertObjectLiteralExpressionToJson (/home/dgoldstein/node_modules/typescript/lib/tsc.js:18925:34) at convertPropertyValueToJson (/home/dgoldstein/node_modules/typescript/lib/tsc.js:18997:32) at convertObjectLiteralExpressionToJson (/home/dgoldstein/node_modules/typescript/lib/tsc.js:18930:29) at convertPropertyValueToJson (/home/dgoldstein/node_modules/typescript/lib/tsc.js:18997:32) at convertToObjectWorker (/home/dgoldstein/node_modules/typescript/lib/tsc.js:18907:16) at parseOwnConfigOfJsonSourceFile (/home/dgoldstein/node_modules/typescript/lib/tsc.js:19396:20) at parseConfig (/home/dgoldstein/node_modules/typescript/lib/tsc.js:19318:13) at parseJsonConfigFileContentWorker (/home/dgoldstein/node_modules/typescript/lib/tsc.js:19204:28) at parseJsonSourceFileConfigFileContent (/home/dgoldstein/node_modules/typescript/lib/tsc.js:19183:16)
Related Issues: didn't see any
The text was updated successfully, but these errors were encountered:
Handle when property name turns out to be non string literal computed…
3c971ed
… name because of errors in tsconfig file Fixes #26076
sheetalkamat
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
TypeScript Version: 3.0.1 and 2.7.2 both repro. I suspect this bug is rather old as the custom json parser was introduced in 1.8.
Search Terms:
Code
tsconfig.json:
and then
tsc --project tsconfig.json
Expected behavior:
I expect typescript to tell me what about my tsconfig file is invalid
Actual behavior:
I get a mostly unhelpful stack trace:
Related Issues: didn't see any
The text was updated successfully, but these errors were encountered: