首页 > 解决方案 > Missing loader for vuetify even though css-loader and vuetify-loader in package.json

问题描述

I use vuetify for my web app. I have the necessary vuetify.js and the imports in the files.

When trying to build my app, I get the error:

'Module parse failed: unexpected token. You may need an appropriate loader to handle this file type.'

For tons of vuetify related files in the node_modules folder. For example:

./node_modules/vuetify/lib/components/VSelect/VSelect.js

In my package.json I have:

  1. sass-loader
  2. css-loader
  3. vue-loader
  4. vue-style-loader
  5. vuetify-loader

And a couple more defined (of which I think they have nothing to do with vuetify).

Could I be missing one? Do I need to define which one to use for the vuetify files?

Might be important to add: I don't have a webpack.config.js, therefore I cannot use the explanation on vuetify quickstart. Do I need a webpack.config to be able to solve this problem?

标签: javascriptvue.jswebpackvuetify.js

解决方案


推荐阅读