Cannot find module 'vuetify-loader/lib/plugin&

2020-06-06 05:43发布

When I load vuetify via the vue-cli3, I get an error when i do npm run serve, saying there is a missing loader.

Docs etc and searches have come up blank.

This is a fresh project, no code loaded. Just following the instructions from the vuetify site.

Can anyone help?

6条回答
萌系小妹纸
2楼-- · 2020-06-06 05:55

you should check the vue-loader plugin path. in my case it is:

vue-loader/dist/plugin
查看更多
Evening l夕情丶
3楼-- · 2020-06-06 06:04

I got the same error when I cloned a repository and I installed the dependencies only on the master branch. When I switched to a different branch (git checkout different_branch) I forgot to install the dependencies there. So make sure you installed the dependencies before you launch the server.

查看更多
成全新的幸福
4楼-- · 2020-06-06 06:11

I've got the same issues while creating new Vuetify app by official guide.

After adding vuetify: vue add vuetify
The missing step was installing new npm dependencies with: npm install

Later I run npm run serve and it started succesfully.
There is an issue in the documentation!

查看更多
狗以群分
5楼-- · 2020-06-06 06:12

Run npm cache clean --force. It should clear your npm cache. For reference: https://github.com/npm/npm/issues/19072#issuecomment-345555468

查看更多
甜甜的少女心
6楼-- · 2020-06-06 06:18

Try to manually install the package:

npm install vuetify-loader -D
查看更多
Viruses.
7楼-- · 2020-06-06 06:19

Just had the same problem. In my case it was caused by placing the file vue.config.js in the top-level-folder (next to package.json) instead of in the 'src' folder. Obviously there might be many reasons for this error, but maybe it helps someone...

查看更多
登录 后发表回答