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

Failed to load plugin react: Cannot find module 'eslint-plugin-react' #986

Closed
stephen-last opened this issue Sep 14, 2017 · 1 comment

Comments

@stephen-last
Copy link

commented Sep 14, 2017

I'm running Atom 1.20.0 and have Standard installed in a local project.

Every time I open a .js file I get:

Something bad happened
Failed to load plugin react: Cannot find module 'eslint-plugin-react'
Referenced from: C:\node\sandbox\aws\node_modules\standard\eslintrc.json

The contents of C:\node\sandbox\aws\node_modules\standard\eslintrc.json:

{
  "extends": ["standard", "standard-jsx"]
}

This project doesn't use React at all, however the page type in the bottom right-hand corner of Atom says JavaScript (JSX).

This hasn't been a problem before, and I certainly don't want to have to change all my React projects to .jsx rather than .js to avoid this error.

How do I make this error go away..?

@Flet

This comment has been minimized.

Copy link
Member

commented Nov 7, 2017

I suggest re-installing a fresh copy standard. It looks like there may have been an issue pulling down some dependencies.

Hope this helps! I'm going to close this issue, but feel free to comment if you're still seeing problems.

@Flet Flet closed this Nov 7, 2017

@lock lock bot locked as resolved and limited conversation to collaborators May 10, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
2 participants
You can’t perform that action at this time.