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

"Cannot find module 'eslint-plugin-react'" when trying to run standard #1329

Closed
binaryben opened this issue Jul 12, 2019 · 3 comments
Closed
Labels

Comments

@binaryben
Copy link

What version of standard?

Not sure, I assume latest. Below error appears event when trying to run what I pressume should be a version command (standard -v or standard -V)

What operating system, Node.js, and npm version?

macOS Sierra 10.12.6, v11.1.0, 6.9.0 respectively

What did you expect to happen?

I assume a list of things that didn't meet standard's standard

What actually happened?

standard: Unexpected linter output:

Error: Failed to load plugin 'react' declared in '--config » eslint-config-standard-jsx': Cannot find module 'eslint-plugin-react'
Require stack:
{ ... }
If you think this is a bug in `standard`, open an issue: https://github.com/standard/standard/issues

Let me know if you need the full output within { ... }

I have already tried installing eslint and eslint-plugin-react globally but that did nothing.

@feross
Copy link
Member

feross commented Jul 12, 2019

Thanks for the issue. There is a bug right now where standard doesn't work when installed globally. Looking into it now.

@feross
Copy link
Member

feross commented Jul 12, 2019

This should be fixed in standard 13.0.2.

@feross feross added the bug label Jul 12, 2019
@feross feross closed this as completed in d1d0b7a Jul 12, 2019
@felipezacani
Copy link

Just bumped into this issue here:
"eslint": "^6.7.2",
"eslint-config-prettier": "^4.3.0",
"eslint-config-standard": "^14.1.0",
"eslint-plugin-import": "^2.19.1",
"eslint-plugin-node": "^10.0.0",
"eslint-plugin-prettier": "^3.1.1",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-react": "^7.17.0",
"eslint-plugin-standard": "^4.0.1"

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
Archived in project
Development

No branches or pull requests

3 participants