vue版本冲突解决办法:
in ./src/components/appAdmin/index/index.vue
Module build failed: Error:
Vue packages version mismatch:
- vue@2.3.3
- vue-template-compiler@2.6.10
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.
at Object.<anonymous> (D:\project\productAdmin\src\main\webapp\v1.0\node_modules\vue-template-compiler\index.js:8:9)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (D:\project\productAdmin\src\main\webapp\v1.0\node_modules\vue-loader\lib\parser.js:1:78)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
@ ./src/router/modules/appAdmin/index.js 8:9-64
@ ./src/router/modules/appAdmin/_appAdmin.js
@ ./src/router/index.js
@ ./src/main.js
@ multi ./build/dev-client babel-polyfill ./src/main.js
把vue-template-compiler和vue的版本调整为一致即可:
npm i vue@2.5.2 -S
npm i vue-template-compiler@2.5.2 -S
网友评论