javascript - 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:
sass-loader
css-loader
vue-loader
vue-style-loader
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?
解决方案
推荐阅读
- proxy - 如何让球童重定向/使用我的 DNS 服务器?
- symfony4 - 如何从 symfony4 中的 ChoiceType 字段中打印所选项目的数量?
- javascript - 插入另一个项目后 actionEventListener ("click") 不起作用
- c# - 有没有办法将图像和字符串变量存储在一个数组中?(统一)
- django - Django Emailfield 固定后缀
- query-optimization - SPARQL DBPedia 查询座位容量、优化和删除重复项
- javascript - 为什么我的代码将提示发送到我的手机,而不是发送给尝试向机器人发送消息的任何其他人?
- arrays - Ada:添加新元素时修改数组长度
- django - Django如何按多个字段分组并求和
- php - PHP MVC - 所有控制器的一个视图类与每个控制器的视图类