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 @wordpress when building #239

Open
nexstar-tom-j-nowell opened this issue Jan 9, 2024 · 1 comment
Open

Failed to load plugin @wordpress when building #239

nexstar-tom-j-nowell opened this issue Jan 9, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@nexstar-tom-j-nowell
Copy link
Contributor

Description of the bug

When running nvm use npm install and npm run build the output contains a lot of this:

WARNING in ./client/src/store/reducer.js
Module Warning (from ./node_modules/eslint-loader/dist/cjs.js):
Failed to load plugin @wordpress: Cannot find module 'eslint-plugin-@wordpress'

Steps To Reproduce

nvm use
npm install
npm run build

Additional Information

No response

@nexstar-tom-j-nowell nexstar-tom-j-nowell added the bug Something isn't working label Jan 9, 2024
@nexstar-tom-j-nowell
Copy link
Contributor Author

npm run lint generates this:

❯ npm run lint

> lint
> eslint --color .


Oops! Something went wrong! :(

ESLint: 4.19.1.
ESLint couldn't find the plugin "eslint-plugin-@wordpress". This can happen for a couple different reasons:

1. If ESLint is installed globally, then make sure eslint-plugin-@wordpress is also installed globally. A globally-installed ESLint cannot find a locally-installed plugin.

2. If ESLint is installed locally, then it's likely that the plugin isn't installed correctly. Try reinstalling by running the following:

    npm i eslint-plugin-@wordpress@latest --save-dev

If you still can't figure out the problem, please stop by https://gitter.im/eslint/eslint to chat with the team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant