You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/private/tmp/debug_tsc/node_modules/typescript/lib/tsc.js:82931
throw e;
^
TypeError: Cannot read property 'flags' of undefined
at lookupSymbolChainWorker (/private/tmp/debug_tsc/node_modules/typescript/lib/tsc.js:32382:46)
at lookupSymbolChain (/private/tmp/debug_tsc/node_modules/typescript/lib/tsc.js:32378:24)
at symbolToTypeNode (/private/tmp/debug_tsc/node_modules/typescript/lib/tsc.js:32529:29)
at typeReferenceToTypeNode (/private/tmp/debug_tsc/node_modules/typescript/lib/tsc.js:32019:47)
at typeToTypeNodeHelper (/private/tmp/debug_tsc/node_modules/typescript/lib/tsc.js:31767:95)
at /private/tmp/debug_tsc/node_modules/typescript/lib/tsc.js:31584:106
at withContext (/private/tmp/debug_tsc/node_modules/typescript/lib/tsc.js:31633:37)
at Object.typeToTypeNode (/private/tmp/debug_tsc/node_modules/typescript/lib/tsc.js:31584:28)
at typeToString (/private/tmp/debug_tsc/node_modules/typescript/lib/tsc.js:31551:40)
at reportNonexistentProperty (/private/tmp/debug_tsc/node_modules/typescript/lib/tsc.js:47826:209)
Note that removing either the @return or the @template JSDoc tags causes the crash to go away.
🙂 Expected behavior
Typescript compiler should not crash. Moreover, it crashes even with the --checkJs false flag.
Note: Found another similar, but not identical issue at #29570.
The text was updated successfully, but these errors were encountered:
Bug Report
🔎 Search Terms
TypeError: Cannot read property 'flags' of undefined
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
See crash in DevTools console
💻 Code
Contents of repro.js. Note: removed a lot of code from actual production code (in @polymer/polymer), to create a minimal repro.
Repro with the following command
🙁 Actual behavior
tsc crashes with the following stack trace
Note that removing either the
@return
or the@template
JSDoc tags causes the crash to go away.🙂 Expected behavior
Typescript compiler should not crash. Moreover, it crashes even with the
--checkJs false
flag.Note: Found another similar, but not identical issue at #29570.
The text was updated successfully, but these errors were encountered: