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
It's working on 5.3
Here is the stacktrace, I hope it helps, I don't really have time to disect which part my codebase triggers this. Feel free to close if this not enough to understand the regression
TypeError: Cannot read properties of undefined (reading '0')
at removeConstrainedTypeVariables (/Users/arnaud/git/carbon-calculator/node_modules/typescript/lib/tsc.js:57118:33)
at getUnionTypeWorker (/Users/arnaud/git/carbon-calculator/node_modules/typescript/lib/tsc.js:57215:9)
at getUnionType (/Users/arnaud/git/carbon-calculator/node_modules/typescript/lib/tsc.js:57194:12)
at createJsxAttributesTypeFromAttributesProperty (/Users/arnaud/git/carbon-calculator/node_modules/typescript/lib/tsc.js:69288:216)
at checkJsxAttributes (/Users/arnaud/git/carbon-calculator/node_modules/typescript/lib/tsc.js:69353:12)
at checkExpressionWorker (/Users/arnaud/git/carbon-calculator/node_modules/typescript/lib/tsc.js:75700:16)
at checkExpression (/Users/arnaud/git/carbon-calculator/node_modules/typescript/lib/tsc.js:75557:32)
at checkExpressionWithContextualType (/Users/arnaud/git/carbon-calculator/node_modules/typescript/lib/tsc.js:75203:18)
at resolveJsxOpeningLikeElement (/Users/arnaud/git/carbon-calculator/node_modules/typescript/lib/tsc.js:72230:51)
at resolveSignature (/Users/arnaud/git/carbon-calculator/node_modules/typescript/lib/tsc.js:72303:16)
removeConstrainedTypeVariables was introduced in #56515 . Could you confirm that 5.4.0-dev.20231130 works OK but 5.4.0-dev.20231201 is broken? Even with that confirmation - it might be hard to fix this without a repro case. If you'd be interested I could try to guide you on how to at least narrow it down to the file in which the problem occurs. With that information, you'd have an easier time dissecting this to a minimal repro case.
Ok this is the missing piece, the span before is strangely required:
Here is my mininal repro, I don't think my TS config should have an impact on the crash
Activity
Andarist commentedon Dec 6, 2023
Does it crash on
5.4.0-dev.20231206too?ArnaudBarre commentedon Dec 6, 2023
It crashes on
20231206and20231205, not on 5.3.2. Didn't try other versionsAndarist commentedon Dec 6, 2023
removeConstrainedTypeVariableswas introduced in #56515 . Could you confirm that5.4.0-dev.20231130works OK but5.4.0-dev.20231201is broken? Even with that confirmation - it might be hard to fix this without a repro case. If you'd be interested I could try to guide you on how to at least narrow it down to the file in which the problem occurs. With that information, you'd have an easier time dissecting this to a minimal repro case.ArnaudBarre commentedon Dec 7, 2023
Ok so yes it crashes starting on
20231201.I ran the debugger and found the file, and after few try and errors I think this is this combination:
jakebailey commentedon Dec 8, 2023
It's in the template, but you can also use https://www.npmjs.com/package/every-ts to narrow it down further.
I can't get your case to crash in the test suite, unfortunately.
ArnaudBarre commentedon Dec 8, 2023
Ok this is the missing piece, the span before is strangely required:
Here is my mininal repro, I don't think my TS config should have an impact on the crash