Vue packages version mismatch:
- vue@2.6.11 (E:\Vue\h5-futures\h5-index\hongyeqh\node_modules\vue\dist\vue.runtime.common.js)
- vue-template-compiler@2.6.12 (E:\Vue\h5-futures\h5-index\hongyeqh\node_modules\vue-template-compiler\package.json)
报错原因:
vue 和 vue-template-compiler 版本不一致造成的。可以在删除node_models 文件夹下删除 vue-template-compiler,然后重新安装 npm install vue-template-compiler@2.6.11 --save ,问题解决。