[Vue warn]: Failed to mount component: template or render function not defined.

[Vue warn]: Failed to mount component: template or render function not defined.

 

 

 

 

错误原因一:
You might be running into the breaking change described here: https://github.com/vuejs/vue-loader/releases/tag/v13.0.0

修改方法

1: component: (resolve) => require([’@/views/home/home.vue’], resolve),

2: component: require(’…/components/movie/movie.vue’).default


错误原因二:
目录中有相同文件名的vue文件与js文件
修改方法:
require时带上后辍名

上一篇:练习用基础SQL语句


下一篇:Centos7 python3 下 scrapy 安装