Skip to content

Definition for rule 'react/no-will-update-set-state' was not found #1186

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

Closed
joetidee opened this issue May 10, 2017 · 4 comments
Closed

Definition for rule 'react/no-will-update-set-state' was not found #1186

joetidee opened this issue May 10, 2017 · 4 comments

Comments

@joetidee
Copy link

joetidee commented May 10, 2017

I am getting the following error thrown in the terminal:

1:1 error Definition for rule 'react/no-will-update-set-state' was not found react/no-will-update-set-state

what does this mean?

p.s. my rule definition in .eslintrc is "react/no-will-update-set-state": "error"

@ljharb
Copy link
Member

ljharb commented May 11, 2017

Any chance you're using the airbnb eslint config (which doesn't yet support v7 of eslint-plugin-react) and v7 of eslint-plugin-react? If so, npm ls should tell you your dependencies are invalid.

If not, what version of eslint-plugin-react are you using?

@joetidee
Copy link
Author

joetidee commented May 11, 2017

I have the following packages installed:

"eslint-config-airbnb": "^14.0.0"
"eslint-plugin-react": "^6.10.3"

Ran npm ls and no invalid dependencies showed up.

@ljharb
Copy link
Member

ljharb commented May 11, 2017

That rule only exists in v7 - it was added in #1139.

You won't be able to enable it until eslint-config-airbnb releases a new semver-major that supports v7 of eslint-plugin-react.

@ljharb ljharb closed this as completed May 11, 2017
@joetidee
Copy link
Author

ok, thanks for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants