vue | Failed to mount component: template or render function not defined

问题起因:

我把vue官网github上的一个项目的src目录直接替换到我的项目中,然后执行npm脚本,顺利通过,

但是Chrome显示空白,控制台报错 Failed to mount component: template or render function not defined

首先说明我的环境:

所有依赖都是本地安装。

解决办法:

检查两个项目中的package.json中的vue-loader版本,把自己的版本变更为该版本。

node更换模块版本命令:npm install -d [email protected]

猜你喜欢

转载自blog.csdn.net/u011607490/article/details/82937243