Skip to content

TypeError: Cannot read property 'parent' of undefined at getAssignedJSPrototype #27344

@minestarks

Description

@minestarks

TypeScript Version: 3.1.0-dev.20180925

git clone --depth=1 https://github.com/TeamFleet/WhoCallsTheFleet
cd WhoCallsTheFleet
tsc --init
tsc --allowJs --checkJs

Compiler crashes with the callstack:

TypeError: Cannot read property 'parent' of undefined
    at getAssignedJSPrototype (node_modules\typescript\lib\tsc.js:40752:23)
    at getAssignedClassType (node_modules\typescript\lib\tsc.js:40748:37)
    at getJSClassType (node_modules\typescript\lib\tsc.js:40732:28)
    at checkCallExpression (node_modules\typescript\lib\tsc.js:40794:46)
    at checkExpressionWorker (node_modules\typescript\lib\tsc.js:42392:28)
    at checkExpression (node_modules\typescript\lib\tsc.js:42334:42)
    at checkNonNullExpression (node_modules\typescript\lib\tsc.js:39352:37)
    at checkPropertyAccessExpressionOrQualifiedName (node_modules\typescript\lib\tsc.js:39378:28)
    at checkPropertyAccessExpression (node_modules\typescript\lib\tsc.js:39371:20)
    at checkExpressionWorker (node_modules\typescript\lib\tsc.js:42384:28)

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptCrashFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad outputFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions