Skip to content

undefined error in isPropertyAccessExpression #27032

Closed
@ivogabe

Description

@ivogabe

TypeScript Version: 3.1.0-dev.20180907
(3.0.3 works fine)

Search Terms:
isPropertyAccessExpression undefined kind

Code
I couldn't replicate this in a small example. The bug can be reproduced with the following steps:

Expected behavior:
Compilation succeeds without errors

Actual behavior:

[..]/node_modules/typescript/lib/tsc.js:68651
                throw e;
                ^

TypeError: Cannot read property 'kind' of undefined
    at Object.isPropertyAccessExpression ([..]/node_modules/typescript/lib/tsc.js:9975:20)
    at [..]/node_modules/typescript/lib/tsc.js:46202:91
    at Object.forEachEntry ([..]/node_modules/typescript/lib/tsc.js:5689:26)
    at Object.isJSContainerFunctionDeclaration ([..]/node_modules/typescript/lib/tsc.js:46202:25)
    at transformTopLevelDeclaration ([..]/node_modules/typescript/lib/tsc.js:63058:43)
    at visitDeclarationStatements ([..]/node_modules/typescript/lib/tsc.js:63020:26)
    at Object.visitNodes ([..]/node_modules/typescript/lib/tsc.js:51643:48)
    at transformRoot ([..]/node_modules/typescript/lib/tsc.js:62524:33)
    at [..]/node_modules/typescript/lib/tsc.js:1203:42
    at transformRoot ([..]/node_modules/typescript/lib/tsc.js:63498:82)

Related Issues:
#26964
#26978
#26832

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions