Repository navigation
Debug Failure #43011
Copy link
Copy link
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptCrashFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad outputFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad outputFix AvailableA PR has been opened for this issueA PR has been opened for this issue
Milestone
Description
Bug Report
Upgrade in v4.2.2 (also an issue in v4.2.1-rc, tsc fail to compile with an error Debug Failure.
🔎 Search Terms
🕗 Version & Regression Information
- This is a crash
- This changed between versions v4.2.1-beta and v4.2.2-rc
- This is the behaviour in every version I tried, and I reviewed the FAQ for entries about "Debug Failure."
⏯ Playground Link
💻 Code
🙁 Actual behavior
Error: Debug Failure.
at Object.getModuleSpecifiers (/Maskbook/node_modules/.pnpm/typescript@4.2.2/node_modules/typescript/lib/tsc.js:91587:30)
at getSpecifierForModuleSymbol (/Maskbook/node_modules/.pnpm/typescript@4.2.2/node_modules/typescript/lib/tsc.js:39998:62)
at createExpressionFromSymbolChain (/Maskbook/node_modules/.pnpm/typescript@4.2.2/node_modules/typescript/lib/tsc.js:40172:63)
at symbolToExpression (/Maskbook/node_modules/.pnpm/typescript@4.2.2/node_modules/typescript/lib/tsc.js:40159:24)
at /Maskbook/node_modules/.pnpm/typescript@4.2.2/node_modules/typescript/lib/tsc.js:38966:106
at withContext (/Maskbook/node_modules/.pnpm/typescript@4.2.2/node_modules/typescript/lib/tsc.js:39005:37)
at symbolToExpression (/Maskbook/node_modules/.pnpm/typescript@4.2.2/node_modules/typescript/lib/tsc.js:38966:28)
at symbolToStringWorker (/Maskbook/node_modules/.pnpm/typescript@4.2.2/node_modules/typescript/lib/tsc.js:38886:30)
at Object.usingSingleLineStringWriter (/Maskbook/node_modules/.pnpm/typescript@4.2.2/node_modules/typescript/lib/tsc.js:10151:13)
at symbolToString (/Maskbook/node_modules/.pnpm/typescript@4.2.2/node_modules/typescript/lib/tsc.js:38884:73)
🙂 Expected behavior
It should compile.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptCrashFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad outputFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad outputFix AvailableA PR has been opened for this issueA PR has been opened for this issue
Activity
Jack-Works commentedon Mar 1, 2021
I have done a simple debug. Here is some useful information:
<code>{error.stack}</code>Jack-Works commentedon Mar 1, 2021
Seems like it failed to
createSignatureForJSXIntrinsic(<code>) in our codebasedivdavem commentedon Mar 1, 2021
I have a similar
Debug Failureerror when upgradingtypescriptfrom version4.1.5to4.2.2in assistive-webdriver.I have reproduced the error in this simple repository.
The only typescript code is:
Note that the error seems to only happen when dependencies are installed with pnpm, but not when they are installed with npm.
To reproduce the issue:
Here is the error I am getting:
Jack-Works commentedon Mar 1, 2021
Interesting point. IIRC typescript has fixed a bug for pnpm auto import caching recently
divdavem commentedon Mar 5, 2021
With Typescript 4.2.3, it works fine for me now!
Andrew Branch (@andrewbranch) Thank you for fixing this bug. 👍
rhyek commentedon Mar 5, 2021
So glad this was fixed. You guys are great. I'd been following the updates for pnpm on 4.2 before its release and recently hit this issue on a private repo and couldn't reproduce it on a separate public one so wasn't sure how to report it.