-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issue
Milestone
Description
Bug Report
💻 Code
$ git clone https://github.com/devanshj/txstate.git
$ cd txstate
$ git checkout tsc-crash-1
$ yarn
$ yarn tsc --noEmitYou can check the last commit that caused the crash. The change is very minimal, so it'll be easier to debug.
🙁 Actual behavior
tsc exited with code 1, here's the stack trace
E:\txstate\node_modules\typescript\lib\tsc.js:92222
throw e;
^
TypeError: Cannot read property 'length' of undefined
at Object.first (E:\txstate\node_modules\typescript\lib\tsc.js:978:31)
at addPropertyToElementList (E:\txstate\node_modules\typescript\lib\tsc.js:41273:35)
at createTypeNodesFromResolvedType (E:\txstate\node_modules\typescript\lib\tsc.js:41243:29)
at createTypeNodeFromObjectType (E:\txstate\node_modules\typescript\lib\tsc.js:41067:35)
at visitAndTransformType (E:\txstate\node_modules\typescript\lib\tsc.js:41009:34)
at createAnonymousTypeNode (E:\txstate\node_modules\typescript\lib\tsc.js:40952:36)
at typeToTypeNodeHelper (E:\txstate\node_modules\typescript\lib\tsc.js:40853:28)
at serializeTypeForDeclaration (E:\txstate\node_modules\typescript\lib\tsc.js:41979:30)
at addPropertyToElementList (E:\txstate\node_modules\typescript\lib\tsc.js:41309:59)
at createTypeNodesFromResolvedType (E:\txstate\node_modules\typescript\lib\tsc.js:41246:25)
🙂 Expected behavior
tsc should exit with code 0
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issue