当前位置:网站首页>Failed to mount component: template or render function not defined.
Failed to mount component: template or render function not defined.
2022-08-09 08:54:00 【Your-Nikee】
可能原因:
使用路由懒加载动态引入路由时,没有置换为新版本的引入格式,改为
require(`@/views${
item.component}`).default
//or
import(`@/views${
item.component}`).default
即可
在新建的组件内容中不含template元素,在你新建的元素中加入template元素即可
边栏推荐
猜你喜欢
Routing configuration forwarding and experiment
【场景化解决方案】构建医疗通讯录,“慧医钉”助力医院实现数字化管理
Redis redis 】 【 the expiration of listening
Shell编程之循环语句与函数
bs4的使用基础学习
没有对象的可以进来看看, 这里有对象介绍
Tencent cloud server is modified to root login to install pagoda panel
[Vulnerability reproduction] CVE-2018-12613 (remote file inclusion)
Object detection app based on appinventor and EasyDL object detection API
探索APP性能优化之稳定性优化(解决方案)
随机推荐
[漏洞复现]CVE-2018-7490(路径遍历)
交换机的工作原理
黑马2022最新redis课程笔记知识点(面试用)
【KD】2022 KDD Compressing Deep Graph Neural Networks via Adversarial Knowledge Distillation
Introduction to Network Layer Protocols
requests爬取百度翻译
【场景化解决方案】ERP系统与钉钉实现数据互通
leetcode 32. 最长有效括号 (困难)
Programming a washing machine: garbled characters after string output
A watch - article HongMeng development practical experience
ctf misc picture questions knowledge points
DeFi 项目中的治理Token
6000 字+,帮你搞懂互联网架构演变历程!
【愚公系列】2022年08月 Go教学课程 033-结构体方法重写、方法值、方法表达式
【MySQL】mysql:解决[Err] 1093 - You can‘t specify target table ‘表名‘ for update in FROM clause问题
How does STM32 know the usage of FLASH
【GNN终身学习】2022 CVPR 终身图学习
LAN技术-6MSTP
Redis redis 】 【 the expiration of listening
【CNN】白话迁移学习中域适应