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