-
-
Notifications
You must be signed in to change notification settings - Fork 292
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
Plugins failing to load? #473
Comments
So, after playing around with XO for a while working on #480, I've come to discover that it seems that XO is only looking for configs and plugins in the the main project |
Closing in favor of #546 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I recently upgraded
xo
to v0.30.0. Everything was working fine with v0.29.1, but it seems that now,xo
fails due to not being able to loadava
plugin, even though I can see that the plugin is installed in thexo
directory undernode_modules
.I tried solving this by installing
eslint-plugin-ava
locally as a dev dependency for my module. This seems to have worked, but introduced the same problem for theunicorn
plugin (same error, but for unicorn instead of ava). I didn't see anything in the release notes about this, so I'm assuming there's some kind of problem.The full error message is below. I censored out the full path to my module and replaced it with
...
which represents its root. I'm using Windows, Node 13.13.0, ESLint 7.0.0.Failed to load plugin 'ava' declared in 'BaseConfig » C:\...\node_modules\xo\config\plugins.js': Cannot find module 'eslint-plugin-ava'
The text was updated successfully, but these errors were encountered: