-
Notifications
You must be signed in to change notification settings - Fork 885
Incompatible with typescript 2.7 #3711
Comments
@andy-ms any idea what is going on? |
If it helps, this is no longer a problem (for me) with TypeScript version |
I am also on 2.7.2 and everything looks fine as well |
Same problem
|
@vire Try using npm and installing |
After installing latest Also worth to mention the issue was present also in the CLI not just vscode |
I experience this with Downgrading to yarn 1.3.2 resolved the issue. |
Build https://circleci.com/gh/huy-nguyen/remark-github-plugin/72 failed probably because of this conflict between yarn and tslint (palantir/tslint#3711). The suggested solution there is to not use yarn but I wan to keep using yarn. Restoring tslint to 5.8.0 seems to fix the problem.
When upgrading to Angular 6 I have accidentally left As a workaround - make sure that nothing is pulling different versions of typescript. |
I believe this has been fixed. |
@smoke, can I ask you how to do to know if there are any dependency pulling |
@cvgavio look at ... and I did typo in my comment, the version is ^2.8.0 if that matters. |
Bug Report
I'm getting a lot of errors thrown from within tslint when using tslint with typescript 2.7.1
Here's an abbreviated list of errors with the first location in the stack trace:
TypeError: Cannot read property 'declarations' of undefined
atcb (node_modules/tslint/lib/rules/oneVariablePerDeclarationRule.js:57:73)
TypeError: Cannot read property 'kind' of undefined
atcb (node_modules/tslint/lib/rules/noSparseArraysRule.js:50:70)
TypeError: Cannot read property 'kind' of undefined
atcb (node_modules/tslint/lib/rules/noUnusedExpressionRule.js:109:75)
TypeError: Cannot read property 'kind' of undefined
atcb (node_modules/tslint/lib/rules/objectLiteralShorthandRule.js:69:27)
TypeError: Cannot read property 'kind' of undefined
atcb (node_modules/tslint/lib/rules/preferConstRule.js:163:98)
TypeError: Cannot read property 'kind' of undefined
atcb (node_modules/tslint/lib/rules/tripleEqualsRule.js:67:37)
TypeError: Cannot read property 'kind' of undefined
atisPlusExpression (node_modules/tslint/lib/rules/preferTemplateRule.js:112:69)
TypeError: Cannot read property 'length' of undefined
atcb (node_modules/tslint/lib/rules/noDuplicateVariableRule.js:79:66)
TypeError: Cannot read property 'length' of undefined
atcb (node_modules/tslint/lib/rules/noSparseArraysRule.js:59:54)
TypeError: Cannot read property 'length' of undefined
atObject.mapDefined (node_modules/tslint/lib/utils.js:159:55)
It seems to me like some of the typescript AST nodes no longer has properties that tslint is using.
The text was updated successfully, but these errors were encountered: