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

rxjs-tslint doesn't work in vscode #43

Open
williamzhao87 opened this issue Jun 7, 2018 · 0 comments
Open

rxjs-tslint doesn't work in vscode #43

williamzhao87 opened this issue Jun 7, 2018 · 0 comments

Comments

@williamzhao87
Copy link

williamzhao87 commented Jun 7, 2018

After I added the rxjs-tslint to tslint.json:

Using tslint 5.9.1, vsCode 1.23.1 x64 Windows
"rulesDirectory": [
"node_modules/codelyzer",
"node_modules/rxjs-tslint"
],

I saw the following issue:
[Info - 9:55:32 AM] Linter is running.
[Info - 9:55:35 AM] TSLint library loaded from: c:\Work\Git\convert-phonecat\angular-phonecat-hybrid\node_modules\tslint\lib\index.js
TypeError: Cannot read property 'length' of undefined
at cb (c:\Work\Git\convert-phonecat\angular-phonecat-hybrid\node_modules\tslint\lib\rules\callableTypesRule.js:52:28)
at visitNode (c:\Work\Git\convert-phonecat\angular-phonecat-hybrid\node_modules\typescript\lib\typescript.js:13263:24)
at Object.forEachChild (c:\Work\Git\convert-phonecat\angular-phonecat-hybrid\node_modules\typescript\lib\typescript.js:13335:21)
at cb (c:\Work\Git\convert-phonecat\angular-phonecat-hybrid\node_modules\tslint\lib\rules\callableTypesRule.js:64:19)
at visitNodes (c:\Work\Git\convert-phonecat\angular-phonecat-hybrid\node_modules\typescript\lib\typescript.js:13272:30)
at Object.forEachChild (c:\Work\Git\convert-phonecat\angular-phonecat-hybrid\node_modules\typescript\lib\typescript.js:13559:21)
at cb (c:\Work\Git\convert-phonecat\angular-phonecat-hybrid\node_modules\tslint\lib\rules\callableTypesRule.js:64:19)
at visitNodes (c:\Work\Git\convert-phonecat\angular-phonecat-hybrid\node_modules\typescript\lib\typescript.js:13272:30)
at Object.forEachChild (c:\Work\Git\convert-phonecat\angular-phonecat-hybrid\node_modules\typescript\lib\typescript.js:13479:24)
at walk (c:\Work\Git\convert-phonecat\angular-phonecat-hybrid\node_modules\tslint\lib\rules\callableTypesRule.js:50:15)
Warning: The 'deprecation' rule requires type information.
TypeError: Cannot read property 'kind' of undefined
at Object.isBlock (c:\Work\Git\convert-phonecat\angular-phonecat-hybrid\node_modules\tsutils\typeguard\node.js:52:16)
at cb (c:\Work\Git\convert-phonecat\angular-phonecat-hybrid\node_modules\tslint\lib\rules\forinRule.js:49:59)
at visitNodes (c:\Work\Git\convert-phonecat\angular-phonecat-hybrid\node_modules\typescript\lib\typescript.js:13272:30)
at Object.forEachChild (c:\Work\Git\convert-phonecat\angular-phonecat-hybrid\node_modules\typescript\lib\typescript.js:13477:24)
at cb (c:\Work\Git\convert-phonecat\angular-phonecat-hybrid\node_modules\tslint\lib\rules\forinRule.js:52:19)
at visitNode (c:\Work\Git\convert-phonecat\angular-phonecat-hybrid\node_modules\typescript\lib\typescript.js:13263:24)
at Object.forEachChild (c:\Work\Git\convert-phonecat\angular-phonecat-hybrid\node_modules\typescript\lib\typescript.js:13384:21)
at cb (c:\Work\Git\convert-phonecat\angular-phonecat-hybrid\node_modules\tslint\lib\rules\forinRule.js:52:19)
at visitNodes (c:\Work\Git\convert-phonecat\angular-phonecat-hybrid\node_modules\typescript\lib\typescript.js:13272:30)
at Object.forEachChild (c:\Work\Git\convert-phonecat\angular-phonecat-hybrid\node_modules\typescript\lib\typescript.js:13552:21)
FATAL ERROR: invalid array length Allocation failed - JavaScript heap out of memory
[Info - 9:55:47 AM] Connection to server got closed. Server will restart.
[Info - 9:55:47 AM] Linter has stopped.

Btw, I installed this rxjs-tslint locally into my project package.json

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