Skip to content

Crash report #44970

Closed
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugFix Available

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions