Closed
Description
Bug Report
💻 Code
$ git clone https://github.com/devanshj/txstate.git
$ cd txstate
$ git checkout tsc-crash-1
$ yarn
$ yarn tsc --noEmit
You 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