Closed
Description
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:
- Download https://github.com/ivogabe/gulp-typescript/tree/1b655ff5ea4a84889af509bb433bf6a809aebae3
npm install
npm install typescript@3.1.0-dev.20180907
./node_modules/.bin/tsc -p lib
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)