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

eslint-config 5.0.0: Error: Failed to load plugin '@wordpress/eslint-plugin' declared in '.eslintrc.js': Cannot find module '../utils' #21610

Closed
curtisbelt opened this issue Apr 15, 2020 · 2 comments · Fixed by #21609
Labels
npm Packages Related to npm packages [Type] Bug An existing feature does not function as intended

Comments

@curtisbelt
Copy link
Contributor

Describe the bug

When running eslint, an error occurs:

Error: Failed to load plugin '@wordpress/eslint-plugin' declared in '.eslintrc.js': Cannot find module '../utils'

Submitted PR: #21609

@aduth
Copy link
Member

aduth commented Apr 15, 2020

Introduced by: #20574

Last week, I started a local branch to add type-checking to this package, and one of the first things I did (based on discussion from #18942 (comment)) was to move these files into a lib/ directory. I think this convention in packages could help to avoid these sorts of errors in the future, since if the entry within files was simply lib, it could support the addition of new folders without additional changes necessary.

@aduth aduth added [Type] Bug An existing feature does not function as intended npm Packages Related to npm packages labels Apr 15, 2020
@gziolo
Copy link
Member

gziolo commented Apr 15, 2020

The new version 5.0.1 of the package with the bug fix is out on npm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
npm Packages Related to npm packages [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants