Skip to content

Extension not working #18

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

Open
tobiasheldring opened this issue Sep 21, 2018 · 0 comments
Open

Extension not working #18

tobiasheldring opened this issue Sep 21, 2018 · 0 comments

Comments

@tobiasheldring
Copy link

tobiasheldring commented Sep 21, 2018

This extension has been broken for a while now for me both in .vue and .ts files.
Linting with webpack using ForkTsCheckerWebpackPlugin works fine as well as the vscode-tslint-extension for linting .ts files, both of course with the same tsconfig.json, tslint.json and versions of installed libraries

Output

[Info  - 2:20:10 PM] Linter is running.
[Info  - 2:20:11 PM] TSLint library loaded from: /Users/me/project/node_modules/tslint/lib/index.js
The 'no-internal-module' rule threw an error in '/Users/me/project/src/components/pages/MyPage/MyComponent.vue':
TypeError: Cannot read property 'kind' of undefined
    at NoInternalModuleWalker.checkModuleDeclaration (/Users/me/project/node_modules/tslint/lib/rules/noInternalModuleRule.js:66:23)
    at NoInternalModuleWalker.checkStatements (/Users/me/project/node_modules/tslint/lib/rules/noInternalModuleRule.js:60:22)
    at NoInternalModuleWalker.walk (/Users/me/project/node_modules/tslint/lib/rules/noInternalModuleRule.js:54:21)
    at Rule.AbstractRule.applyWithWalker (/Users/me/project/node_modules/tslint/lib/language/rule/abstractRule.js:31:16)
    at Rule.apply (/Users/me/project/node_modules/tslint/lib/rules/noInternalModuleRule.js:29:21)
    at Linter.applyRule (/Users/me/project/node_modules/tslint/lib/linter.js:197:29)
    at /Users/me/project/node_modules/tslint/lib/linter.js:139:85
    at Object.flatMap (/Users/me/project/node_modules/tslint/lib/utils.js:151:29)
    at Linter.getAllFailures (/Users/me/project/node_modules/tslint/lib/linter.js:139:32)
    at Linter.lint (/Users/me/project/node_modules/tslint/lib/linter.js:99:33)

UPDATE
After further trial and error the TypeError: Cannot read property 'kind' of undefined error happened for the no-internal-module & no-namespace rules. Disabling those in tslint.json made the error disappear. So now the tslint output is free from errors, although extension is still not working, tslint error highlighting is nowhere to be seen.

Output

[Info  - 2:50:07 PM] Linter is running.
[Info  - 2:50:08 PM] TSLint library loaded from: /Users/me/project/node_modules/tslint/lib/index.js
@tobiasheldring tobiasheldring changed the title TypeError: Cannot read property 'kind' of undefined Extension not working Sep 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant