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

后端 未结 10 1861
你的背包
你的背包 2021-02-06 12:39

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

相关标签:
10条回答
  • 2021-02-06 13:10

    I had the same problem. This whole thing worked out for me.

    1. vue create your-app
    2. cd your-app
    3. npm i --save-dev --no-optional vuetify-loader vue-cli-plugin sass node-sass sass-loader
    4. npm i
    5. vue add vuetify

    I know this looks redundant but it worked.

    0 讨论(0)
  • 2021-02-06 13:15

    do a npm install after adding vuetify as vue add vuetify then start server by npm run serve

    0 讨论(0)
  • 2021-02-06 13:16

    Try to manually install the package:

    npm install vuetify-loader -D
    
    0 讨论(0)
  • 2021-02-06 13:16

    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.

    0 讨论(0)
提交回复
热议问题