Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash report #44970

Closed
devanshj opened this issue Jul 10, 2021 · 0 comments · Fixed by #45190
Closed

Crash report #44970

devanshj opened this issue Jul 10, 2021 · 0 comments · Fixed by #45190
Assignees
Labels
Bug A bug in TypeScript Fix Available A PR has been opened for this issue

Comments

@devanshj
Copy link

devanshj commented Jul 10, 2021

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
Labels
Bug A bug in TypeScript Fix Available A PR has been opened for this issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants