昨天写好的代码.第二天运行时报错了
Failed to mount component: template or render function not defined.
翻译为模板或渲染函数未定义
后找到报错原因 代码如下
import ReiInformation from ‘././domestic/reiInformation’
在引入组件时未加组件后缀.vue
import ReiInformation from ‘././domestic/reiInformation.vue’
加上.vue后就解决报错了
Failed to mount component: template or render function not defined.
最新推荐文章于 2024-05-03 22:32:16 发布