我正在使用vue 2,刚刚开始使用vuetify的一个项目。一开始我可以让它工作,但经过一些使用它停止工作,我得到这个错误:
未找到模块:错误:无法解析'vuetify/src/stylin' in '/Users/marcelorocha/Documents/Proyecto Express/sistemavue/src/plugins'
Error in./src/plugins/vuettify.js 3:0-37未找到模块:错误:无法解析'vuetify/src/stylin' in '/Users/marcelorocha/Documents/Proyecto Express/sistemavue/src/plugins' @./src/main. js 2:0-27
webpack编译有1个错误
等待编译23:06:41
正在编译...
错误无法编译,错误1>23:06:43
错误在./src/plugins/vuetify.js
未找到模块:错误:无法解析'vuetify/src/stylin' in '/Users/marcelorocha/Documents/Proyecto Express/sistemavue/src/plugins'
Error in./src/plugins/vuettify.js 3:0-37未找到模块:错误:无法解析'vuetify/src/stylin' in '/Users/marcelorocha/Documents/Proyecto Express/sistemavue/src/plugins' @./src/main. js 2:0-27
webpack编译有1个错误
我尝试重新启动计算机,因为我没有对包json或node模块做任何更改,只有一些组件和main.js
2条答案
按热度按时间iq3niunx1#
This is weird, try to clean npm dependencies, remove the folder node_modules, maybe you can remove the file package-lock.json or yarn.lock depending on which package manager are you using and install again, also you can try to clear cache of your package manager
In case you are using npm
If the error persist execute
And repeat the previous process
Warning: Be careful with these commands in production environments
nfg76nw02#
您最近是否从Vuetify 1更新到2?很确定您使用的是版本1的样式导入,当Vuetify使用手写笔加载器时。寻找一条线,比如
并移除它。
如果不使用vuety-loader,请使用
否则vuety-loader应该处理它。
此处记录了使用webpack setup的v2设置