美文网首页
Vue packages version mismatch:-

Vue packages version mismatch:-

作者: 夜空最亮的9星 | 来源:发表于2022-11-09 14:02 被阅读0次
 error  in ./src/pages/system/permissionsmanagement.vue
 
Module build failed: Error:
 
Vue packages version mismatch:
 
- vue@2.6.14 (/Users/dx/Documents/2021works/TaiTaiLeYingXiaoPC/node_modules/vue/dist/vue.runtime.common.js)
- vue-template-compiler@2.6.11 (/Users/dx/Documents/2021works/TaiTaiLeYingXiaoPC/node_modules/vue-template-compiler/package.json)
 
This may cause things to work incorrectly. Make sure to use the same version for both.
If you are using vue-loader@>=10.0, simply update vue-template-compiler.
If you are using vue-loader@<10.0 or vueify, re-installing vue-loader/vueify should bump vue-template-compiler to the latest.

解决思路:

npm i vue-template-compiler和vue版本需要一致

解决办法:

更新vue-template-compiler, 命令行输入:

npm i vue-template-compiler@2.6.14(你的vue版本号)

相关文章

网友评论

      本文标题:Vue packages version mismatch:-

      本文链接:https://www.haomeiwen.com/subject/vcrntdtx.html