vue版本冲突

1、报错

ERROR in

Vue packages version mismatch:

vue@2.1.4
vue-template-compiler@2.1.5
This may cause things to work incorrectly. Make sure to use the same version for both.
image

2、原因

vue-loader和vue-template-complier版本不一致

3、解决办法

  • 修改node_modulesvue-loadervue-template-complier文件中的package.json文件

  • 把各自的版本改为同一版本

  • npm install重新加载

  • OK

posted @ 2021-06-03 23:51  .爬行的蜗牛  阅读(395)  评论(0编辑  收藏  举报
Document