TypeError: Cannot read property 'kind' of undefined in rxjsFinnishRule
See original GitHub issueHey there, added the rules to a project using
TypeScript@2.6.2 TSLint@5.9.1
produced this stacktrace a couple of times:
TypeError: Cannot read property 'kind' of undefined
at ./my-project/node_modules/rxjs-tslint-rules/dist/rules/rxjsFinnishRule.js:56:30
at Array.forEach (native)
at Walker.visitObjectLiteralExpression (./my-project/node_modules/rxjs-tslint-rules/dist/rules/rxjsFinnishRule.js:55:25)
at Walker.SyntaxWalker.visitNode (./my-project/node_modules/tslint/lib/language/walker/syntaxWalker.js:449:22)
at ./my-project/node_modules/tslint/lib/language/walker/syntaxWalker.js:535:63
at visitNodes (./my-project/node_modules/typescript/lib/typescript.js:12699:30)
at Object.forEachChild (./my-project/node_modules/typescript/lib/typescript.js:12830:21)
at Walker.SyntaxWalker.walkChildren (./my-project/node_modules/tslint/lib/language/walker/syntaxWalker.js:535:12)
at Walker.SyntaxWalker.visitCallExpression (./my-project/node_modules/tslint/lib/language/walker/syntaxWalker.js:54:14)
at Walker.SyntaxWalker.visitNode (./my-project/node_modules/tslint/lib/language/walker/syntaxWalker.js:305:22)
The process does not crash and completes showing lint failures concerning some files in the project as if nothing had gone wrong. I tried to get some info on the root nodes but a few console.logs haven’t yielded anything that would have helped to track down the source.
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
TypeError: Cannot read property 'kind' of undefined at ...
This problem started to occur when updating my Angular 6 project to 7.x. I opened an issue on the angular-cli github repo but...
Read more >Production Build Errors with smart-webcomponents-angular ...
node_modules/@angular-devkit/build-optimizer/src/build-optimizer/webpack-loader.js): TypeError: Cannot read property 'kind' of undefined
Read more >Ionic 3.x Unable to build using the --prod "TypeError
[08:09:25] deeplinks finished in 1.63 s [08:09:25] ngc started ... TypeError: Cannot read property 'kind' of undefined at nodeCanBeDecorated ...
Read more >HELP: TypeError: Cannot read property 'kind' of undefined
I was developing a library but when I add certain generics , TSC crashed : TypeError: Cannot read property 'kind' of undefined I...
Read more >TypeError: Cannot read property 'kind' of undefined at ... - Dirask
TypeError : Cannot read property 'kind' of undefined. at getRootDeclaration (C:\Users\john\AppData\Roaming\npm\node_modules\typescript\lib\tsc.js:12052:21).
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Should be fixed in 3.7.2.
Yep. Reproduced it in the fixtures. Thanks.