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

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

Closed
Strate opened this issue Apr 13, 2017 · 5 comments
Closed

Comments

@Strate
Copy link

Strate commented Apr 13, 2017

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)
@adidahiya
Copy link
Contributor

Any chance you could provide a minimal code sample this fails with?

@Strate
Copy link
Author

Strate commented Apr 13, 2017

@adidahiya I think I could, but tomorrow :-)

@Strate
Copy link
Author

Strate commented Apr 13, 2017

N.B: running tslint command do not fail, fail only inside PhpStorm.

@IllusionMH
Copy link
Contributor

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

@Strate
Copy link
Author

Strate commented 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.

@Strate Strate closed this as completed Apr 13, 2017
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

3 participants