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.

jsxWrapMultilineRule: TypeError: Cannot read property 'some' of undefined

See original GitHub issue

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

github_iconTop GitHub Comments

2reactions
IllusionMHcommented, Apr 13, 2017

@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.

0reactions
Stratecommented, Apr 13, 2017

@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.

Read more comments on GitHub >

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

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