You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
TypeError: Cannot read property 'getText' of undefined
at NameWalker.visitInterfaceDeclaration (/home/andy/git/TSLINT/node_modules/tslint/lib/rules/classNameRule.js:34:38)
at NameWalker.SyntaxWalker.visitNode (/home/andy/git/TSLINT/node_modules/tslint/lib/language/walker/syntaxWalker.js:329:22)
at /home/andy/git/TSLINT/node_modules/tslint/lib/language/walker/syntaxWalker.js:440:63
at visitNode (/home/andy/git/TSLINT/node_modules/typescript/lib/typescript.js:7020:20)
at Object.forEachChild (/home/andy/git/TSLINT/node_modules/typescript/lib/typescript.js:7194:21)
at NameWalker.SyntaxWalker.walkChildren (/home/andy/git/TSLINT/node_modules/tslint/lib/language/walker/syntaxWalker.js:440:12)
at NameWalker.SyntaxWalker.visitIfStatement (/home/andy/git/TSLINT/node_modules/tslint/lib/language/walker/syntaxWalker.js:105:14)
at NameWalker.SyntaxWalker.visitNode (/home/andy/git/TSLINT/node_modules/tslint/lib/language/walker/syntaxWalker.js:317:22)
at /home/andy/git/TSLINT/node_modules/tslint/lib/language/walker/syntaxWalker.js:440:63
at visitEachNode (/home/andy/git/TSLINT/node_modules/typescript/lib/typescript.js:7032:30)
The rule works if you revert to either tslint@3.2.2-dev.1 or typescript@1.7.5.
The text was updated successfully, but these errors were encountered:
Just to clarify for you @andy-hanson (and this admittedly isn't obvious) the .dev releases aren't actually "older versions", they're versions designed to work with TypeScript nightlies and in fact sometimes contain features before the regular releases.
This bug seems strange though, we'll look into it more.
Thanks for the report on this @andy-hanson. At it turns out, the fix for the const enum issue is in TypeScript 1.8.x but not in 1.7.x and TSLint v3.2.2 was compiled with TypeScript 1.7.5. We should be able to take care of this in the next TSLint release
tslint.json
:package.json
:foo.ts
:output:
The rule works if you revert to either
tslint@3.2.2-dev.1
ortypescript@1.7.5
.The text was updated successfully, but these errors were encountered: