jsxWrapMultilineRule: TypeError: Cannot read property 'some' of undefined
See original GitHub issuetslint-react@2.5.0
Happens with phpStorm tslint integration
TypeError: Cannot read property 'some' of undefined
at Object.doesIntersect (/devel/src/hotfix/megaplan/front/node_modules/tslint/lib/language/utils.js:27:29)
at _loop_1 (/devel/src/hotfix/megaplan/front/node_modules/tslint/lib/language/rule/abstractRule.js:47:26)
at Rule.AbstractRule.filterFailures (/devel/src/hotfix/megaplan/front/node_modules/tslint/lib/language/rule/abstractRule.js:54:13)
at Rule.AbstractRule.applyWithWalker (/devel/src/hotfix/megaplan/front/node_modules/tslint/lib/language/rule/abstractRule.js:33:21)
at Rule.apply (/devel/src/hotfix/megaplan/front/node_modules/tslint-react/rules/jsxWrapMultilineRule.js:31:21)
at Linter.applyRule (/usr/lib/node_modules/tslint/lib/linter.js:138:33)
at Linter.lint (/usr/lib/node_modules/tslint/lib/linter.js:104:41)
at TSLintPlugin.processLinting (/devel/bin/PhpStorm-171.3780.55/plugins/tslint/tslintLanguageService/tslint-plugin.js:76:20)
at TSLintPlugin.getErrors (/devel/bin/PhpStorm-171.3780.55/plugins/tslint/tslintLanguageService/tslint-plugin.js:54:21)
at TSLintPlugin.process (/devel/bin/PhpStorm-171.3780.55/plugins/tslint/tslintLanguageService/tslint-plugin.js:22:29)
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Getting "Cannot read property 'some' of undefined ... - GitHub
Bug Report Running jest when jsdom@16.2.2 is installed results in the error: TypeError: Cannot read property 'some' of undefined at ...
Read more >Cannot Read Property of Undefined in JavaScript - Rollbar
TypeError: Cannot read property of undefined occurs when a property is read or a function is called on an undefined variable.
Read more >Cannot read property 'some' of undefined - Stack Overflow
I am trying to use https://gcanti.github.io/fp-ts/modules/Option.ts.html as follows: import O, {Option} from "fp-ts/Option"; .
Read more >Uncaught TypeError: Cannot read property of undefined In
Uncaught TypeError: Cannot read property of undefined error occurs in Chrome when you read a property or call a method on an undefined...
Read more >Uncaught TypeError: Cannot read property 'some' of undefined
It occurs when you're trying to access a domain (group, device, etc) that doesn't exist. Example: In lovelace-ui.yaml you have a entity called: ......
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 Free
Top 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
@Strate is it possible that versions of TSLint on TypeScript used by phpStorm and CLI may differ? Most commonly - local and global installation versions may be different.
@IllusionMH Ah, really, stackstrace contains path to
usr/lib/node_modules
, to global installation. I’ll check it tomorrow and reopen this if something goes wrong.