question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: Cannot read property 'kind' of undefined in rxjsFinnishRule

See original GitHub issue

Hey 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:closed
  • Created 6 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
cartantcommented, Jan 30, 2018

Should be fixed in 3.7.2.

1reaction
cartantcommented, Jan 30, 2018

Yep. Reproduced it in the fixtures. Thanks.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found