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 with eslint@4.14.0 #296

Closed
Manjiz opened this issue Dec 26, 2017 · 2 comments
Closed

Error with eslint@4.14.0 #296

Manjiz opened this issue Dec 26, 2017 · 2 comments
Labels

Comments

@Manjiz
Copy link

Manjiz commented Dec 26, 2017

> eslint jsbundles/

Cannot read property 'type' of undefined
TypeError: Cannot read property 'type' of undefined
    at isForInRef (**/node_modules/eslint/lib/rules/no-unused-vars.js:410:23)
    at variable.references.some.ref (**/node_modules/eslint/lib/rules/no-unused-vars.js:447:21)
    at Array.some (<anonymous>)
    at isUsedVariable (**/node_modules/eslint/lib/rules/no-unused-vars.js:446:40)
    at collectUnusedVariables (**/node_modules/eslint/lib/rules/no-unused-vars.js:569:26)
    at Program:exit (**/node_modules/eslint/lib/rules/no-unused-vars.js:621:36)
    at listeners.(anonymous function).forEach.listener (**/node_modules/eslint/lib/util/safe-emitter.js:47:58)
    at Array.forEach (<anonymous>)
    at Object.emit (**/node_modules/eslint/lib/util/safe-emitter.js:47:38)
    at NodeEventGenerator.applySelector (**/node_modules/eslint/lib/util/node-event-generator.js:251:26)

I can't track the position of this error.

Fixed with eslint@4.12.1

@gajus gajus added the bug label Jan 1, 2018
@kindrowboat
Copy link

We confirmed that this works with 4.13.0 but not with 4.14.0.

@ghost
Copy link

ghost commented Feb 8, 2018

@gajus gajus closed this as completed Mar 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants