[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时带上后辍名

posted @ 2019-11-21 11:45  秋风吧  阅读(1161)  评论(0编辑  收藏  举报