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

Error when typing _() #237

Closed
garyking opened this issue May 9, 2020 · 0 comments · Fixed by #239
Closed

Error when typing _() #237

garyking opened this issue May 9, 2020 · 0 comments · Fixed by #239

Comments

@garyking
Copy link
Contributor

garyking commented May 9, 2020

Type this:

_()

Error:

[Error - 10:51:45 PM] ESLint stack trace:
[Error - 10:51:45 PM] TypeError: Cannot read property 'parent' of null
Occurred while linting parse.ts:7
    at getEndOfChain (/node_modules/eslint-plugin-lodash/src/rules/unwrap.js:32:51)
    at visitors.CallExpression (/node_modules/eslint-plugin-lodash/src/rules/unwrap.js:41:29)
    at /node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/node_modules/eslint/lib/linter/node-event-generator.js:254:26)
    at NodeEventGenerator.applySelectors (/node_modules/eslint/lib/linter/node-event-generator.js:283:22)
    at NodeEventGenerator.enterNode (/node_modules/eslint/lib/linter/node-event-generator.js:297:14)
    at CodePathAnalyzer.enterNode (/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:634:23)
    at /node_modules/eslint/lib/linter/linter.js:936:32

I thought this only happened in eslint v7, but it also happens in 6.8.0.

@garyking garyking changed the title Error with eslint v7 Error when typing _() May 9, 2020
@idok idok closed this as completed in #239 Aug 24, 2020
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

Successfully merging a pull request may close this issue.

1 participant