Skip to content

TypeScript 1.8 beta throws exception with typescript.js as input #6727

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

Closed
evmar opened this issue Jan 29, 2016 · 1 comment
Closed

TypeScript 1.8 beta throws exception with typescript.js as input #6727

evmar opened this issue Jan 29, 2016 · 1 comment
Labels
Duplicate An existing issue was already created

Comments

@evmar
Copy link
Contributor

evmar commented Jan 29, 2016

$ npm i typescript@beta
$ ./node_modules/typescript/bin/tsc --allowJs ./node_modules/typescript/lib/typescript.js --outFile test.js
.../node_modules/typescript/lib/tsc.js:32796
                throw e;
                      ^
TypeError: Cannot read property 'type' of undefined
    at getReturnTypeFromJSDocComment (.../node_modules/typescript/lib/tsc.js:19407:68)
    at getSignatureFromDeclaration (.../node_modules/typescript/lib/tsc.js:14802:36)
    at checkSpecializedSignatureDeclaration (.../node_modules/typescript/lib/tsc.js:20664:29)
    at checkSignatureDeclaration (.../node_modules/typescript/lib/tsc.js:20420:13)
    at checkFunctionOrMethodDeclaration (.../node_modules/typescript/lib/tsc.js:21170:13)
    at checkFunctionDeclaration (.../node_modules/typescript/lib/tsc.js:21161:17)
    at checkSourceElement (.../node_modules/typescript/lib/tsc.js:22800:28)
    at Object.forEach (.../node_modules/typescript/lib/tsc.js:98:30)
    at checkBlock (.../node_modules/typescript/lib/tsc.js:21207:16)
    at checkSourceElement (.../node_modules/typescript/lib/tsc.js:22803:28)
@evmar evmar changed the title TypeScript 1.8 beta can't process itself TypeScript 1.8 beta throws exception with typescript.js as input Jan 29, 2016
@RyanCavanaugh RyanCavanaugh added the Duplicate An existing issue was already created label Jan 29, 2016
@RyanCavanaugh
Copy link
Member

Same root cause as #6662

@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

2 participants