
正文
"[Vue warn]: Failed to mount component: template or render function not defined"错误的解决
提示:扫一扫查出行【扫一扫了解最新限行尾号】
复制提示
VUE中动态路由出错:
vue.esm.js?a026: [Vue warn]: Failed to mount component: template or render function not defined.found in---> <Anonymous>
<ElCard>
<ElTabPane>
<ElTabs>
<MainContent> at src\components\admin\MainContent.vue
<Main> at src\components\admin\Main.vue
<App> at src\pages\admin\index\app.vue
<Root>
找到原因如下:
https://stackoverflow.com/questions/45964665/vuejs-failed-to-mount-component
//https://stackoverflow.com/questions/45964665/vuejs-failed-to-mount-componentYou might be running into the breaking change described here: https://github.com/vuejs/vue-loader/releases/tag/v13.0.0Try adding .default to the end of your require().component: require('./index/index.vue').default







