error in ./src/components/form/Editor.vue Module build failed: Error:Vue packages version mismatch
1.错误:
error in ./src/components/form/Editor.vue
Module build failed: Error:
Vue packages version mismatch:
- [email protected]
- [email protected]This may cause things to work incorrectly. Make sure to use the same version f
or both.
If you are using [email protected]>=10.0, simply update vue-template-compiler.
If you are using [email protected]<10.0 or vueify, re-installing vue-loader/vueify s
hould bump vue-template-compiler to the latest.
翻译错误信息:【Vue packages version mismatch:Vue软件包版本不匹配】 。
这错误是你当前安装的VUE依赖node_modules是2.6.12版本的,但导入的项目中用的是2.5.16版本的。
就是说你安装的node_modules需要和vue-template-compiler对应的版本才可以使项目运行成功!
2.解决:
1.直接在项目中删除之前的node_modules,
2.然后安装2.5.16版本的vue依赖:npm install [email protected] --save
3.运行项目:npm run dev
------------------------------------------------------------------------------------------------------------------
OK,这样就成功了!