-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
use vue-cli with lerna and got Error: Cannot find module '@vue/cli-plugin-eslint' #4911
Comments
This problem is a little bit tricky… |
Thanks for your reply. my solution is:in lerna dir, when use vue-cli to create vue project, don't select eslint item, and add eslint later. this works but still hope to get an official solution. |
This solved my issue. Thank you! :D |
This also can work |
Here is an error I got with
|
Might be related yarnpkg/yarn#7572 |
same issue |
Same issue. The solution is still to sync your root level |
A workaround that I use is to create a new package named 3 packages that I haven't been able to move to a shared level involve sass-loader, vue-cli-plugin-vuetify, and vuetify-loader; which is a Vuetify specific issue. |
To get rid of this issue just move the "@vue/cli-plugin-eslint" package from the Vue project package to the root package.json. |
The way I fixed this in yarn workspaces was using workspaces nohoist in the root package.json
|
Thank you!! This solved my issue. |
@Magpied when I reinstall, it is run, thank you |
I solved this by adding {
"devDependencies": {
"@vue/cli-plugin-eslint": "~4.5.0"
}
} in my root |
In my scenario it turned out I had |
It also works to remove |
Version
4.1.1
Reproduction link
https://github.com/jkhhuse/vue-cli-with-lerna
Environment info
Steps to reproduce
step1: lerna init and lerna.json config:
step2:
use vue-cli create vue project, named vue-based.
step3:
in vue-based directory, execute " yarn run sere", and got error.
What is expected?
run sucess
What is actually happening?
$ yarn run serve
OR
when copy this vue-cli based project outer of lerna dir, and reinstall node_modules, it can run success. however in lerna packages/vue-based it not work. when copy node_modules in lerna packages/vue-based to lerna root node_modules, yarn run serve run sucess.
The text was updated successfully, but these errors were encountered: