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

Unsupported TypeScript version: 2.2.0-dev #149

Closed
sasxa opened this issue Nov 14, 2016 · 2 comments
Closed

Unsupported TypeScript version: 2.2.0-dev #149

sasxa opened this issue Nov 14, 2016 · 2 comments

Comments

@sasxa
Copy link

sasxa commented Nov 14, 2016

I'm getting an error when I use typescript@next (angular-cli project, vscode editor).
It works with typescript@latest 2.0.9, and typescript@rc 2.1.1, but not with typescript@next 2.2.0-dev. My guess is that this is related to the new features - Object spread and rest.

Any chance to add support for this?

[Info  - 17.59.10] vscode-tslint: 'Unsupported TypeScript version: 2.2.0-dev.20161114' while validating: ~\src\app\app.module.ts stacktrace: Error: Unsupported TypeScript version: 2.2.0-dev.20161114
    at Object.current (~\node_modules\codelyzer\util\syntaxKind.js:2120:23)
    at ClassMetadataWalker.visitClassDeclaration (~\node_modules\codelyzer\useLifeCycleInterfaceRule.js:45:37)
    at ClassMetadataWalker.SyntaxWalker.visitNode (~\node_modules\tslint\lib\language\walker\syntaxWalker.js:264:22)
    at ~\node_modules\tslint\lib\language\walker\syntaxWalker.js:459:63
    at visitEachNode (~\node_modules\typescript\lib\typescript.js:13851:30)
    at Object.forEachChild (~\node_modules\typescript\lib\typescript.js:14022:24)
    at ClassMetadataWalker.SyntaxWalker.walkChildren (~\node_modules\tslint\lib\language\walker\syntaxWalker.js:459:12)
    at ClassMetadataWalker.SyntaxWalker.visitSourceFile (~\node_modules\tslint\lib\language\walker\syntaxWalker.js:190:14)
    at ClassMetadataWalker.SyntaxWalker.visitNode (~\node_modules\tslint\lib\language\walker\syntaxWalker.js:414:22)
    at ClassMetadataWalker.SyntaxWalker.walk (~\node_modules\tslint\lib\language\walker\syntaxWalker.js:7:14)
@mgechev
Copy link
Owner

mgechev commented Nov 14, 2016

Yes there's no support for TypeScript 2.2.0 at this point. We'll add it in the next a couple of days.

@e-cloud
Copy link

e-cloud commented Nov 22, 2016

what should be updated for supporting TS 2.2.0. I may give a hand on this 😄

@mgechev mgechev self-assigned this Nov 28, 2016
@mgechev mgechev added this to the Beta 6 - Turing switch milestone Nov 28, 2016
jonwolski pushed a commit to jonwolski/codelyzer that referenced this issue Feb 21, 2017
Constrain the allowed versions of `typescript` to a maximum of `2.2.x`.

Since the supported versions of typescript [maxes out at 2.2] (1), this
package should not express support for higher versions of the package
(i.e. if typescript v2.3.0 were to exist, there would be a repeat of

1: https://github.com/mgechev/codelyzer/blob/28059b141c77dd6808bc748ea86285805af17f1e/src/util/syntaxKind.ts#L2806-L2809

related to mgechev#149
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants