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

后端 未结 10 1860
你的背包
你的背包 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 12:51

    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!

    0 讨论(0)
  • 2021-02-06 12:52

    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...

    0 讨论(0)
  • 2021-02-06 12:55

    In your package.json: move @nuxtjs/vuetify from devDependencies to dependencies

    0 讨论(0)
  • 2021-02-06 12:57

    just install the pacakge to devDependencies:

    npm i --save-dev vue-loader-v16
    

    After installing the dev dependency

    npm run serve
    
    0 讨论(0)
  • 2021-02-06 13:01

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

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

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

    vue-loader/dist/plugin
    
    0 讨论(0)
提交回复
热议问题