canfoo / vue2.0-taopiaopiao

vue2.0+router+vuex+express 构建淘票票的全栈demo
1.23k stars 380 forks source link

版本问题 请问下这个怎么解决 #5

Closed AlfieriChou closed 5 years ago

AlfieriChou commented 7 years ago

ERROR in

Vue packages version mismatch:

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.

@ ./src/main.js 61:8-35

wzy4072 commented 7 years ago

我的也出现过类似的,

 error  in ./src/components/YgMenu.vue
Module build failed: Error:
Vue packages version mismatch:
- vue@2.4.1
- vue-template-compiler@2.3.4
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 th
e latest.

应该是因为模块的版本有升级。解决办法就是升级对应模块 npm install vue-template-compiler@latest -S @latest是模块最新版的意思,然后就ok了

zhaocunyang commented 7 years ago

不知道为什么官方这么升级 默认vue版本是2.4.3,而vue-template-compiler 最新版本是2.3.4就一直导致这个 问题 把vue版本改到2.3.*,然后从新npm install一下就解决这个恶心的版本问题了