原文:解决vue项目报错:Failed to mount component: template or render function not defined.

页面这么写的: 问题出在router里定义路由的时候这么写: 看似没有问题,但是我在 pages monitoring 目录下,既有monitoring.vue,又有monitoring.js,不补全文件后缀的话会找不对文件,所以就报错了 ...

2020-07-23 15:28 0 30490 推荐指数:

查看详情

Failed to mount component: template or render function not defined.

在公司下班前提交的代码,夜晚回家pull一把,运行却报错Failed to mount component: template or render function not defined. 百度翻译:无法安装组件:模板或渲染功能未定义。 什么原因呢?百度了一大圈,有的说需要修改配置文件 ...

Tue Nov 03 06:56:00 CST 2020 0 2963
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM