vuejs使用vuetify报错
[Vuetify] Multiple instances of Vue detected "$attrs is readonly"
解决办法:
The actual fix for this is to ensure both Vue and Vuetify are treated the same way in the webpack externals, e.g. putting both (or neither?) in the let whiteListedModules = ['vue', 'vuetify'] line in these vuetify webpack builds
就是在webpack配置文件里将
let whiteListedModules = ['vue']
改成
let whiteListedModules = ['vue', 'vuetify']
在这里看的
https://github.com/vuetifyjs/vuetify/discussions/4068#issuecomment-439903698
本文介绍如何修复在Vue项目中使用Vuetify时遇到的'Multiple instances of Vue detected'错误,重点在于调整webpack配置,将Vue和Vuetify同时加入whitelist Modules中。
1万+

被折叠的 条评论
为什么被折叠?



