报错#vue-router#unknown custom element: <router-link> - did you register the component correctly?
报错截图:
报错信息:
[Vue warn]: Unknown custom element: - did you register
the component correctly? For recursive components, make sure to
provide the “name” option. found in —> at src/App.vue
翻译:
[Vue 警告]:未知的自定义元素: -你正确注册组件了吗?对于递归组件,请确保提供“name”选项。
在src中的App.vue中发现的
解决方法
这里我出现这个错误的原因是,我在App.vue中引入router的时候,引入的是:
而实际上,这里应该引入的是,我定义的路由:
改正之后,就可以正常运行了
报错#vue-router#unknown custom element: <router-link> - did you register the component correctly?相关推荐
- 解决:Unknown custom element: <> - did you register the component correctly? For recursive compon
出现Unknown custom element: <> - did you register the component correctly? For recursive compon ...
- 前端开发:Vue项目报错Unknown custom element:XXX - did you register the component correctly…的解决方法丨蓄力计划
导读 Vue项目报错Unknown custom element:XXX - did you register the component correctly-的解决方法. 问题 前段时间在做前端项目 ...
- Vue报错-[Vue warn]: Unknown custom element: <van-action-sheet> - did you register the component correc
项目场景: 今天在使用到vant组件的时候引入报错. [Vue warn]: Unknown custom element: <van-action-sheet> - did you re ...
- [Vue warn]: Unknown custom element: <helptext> - did you register the component correctly? For recu
报错信息: vue.js:634 [Vue warn]: Unknown custom element: - did you register the component correctly? For ...
- [Vue warn]: Unknown custom element: vhead - did you register the component correctly? For recursiv
[Vue warn]: Unknown custom element: <vhead> - did you register the component correctly? For re ...
- [Vue warn]: Unknown custom element: <Top> - did you register the component correctly?
[Vue warn]: Unknown custom element: - did you register the component correctly? 错误如下: 出现错误的原因有以下几种: ...
- 解决[Vue warn]: Unknown custom element: <ag> - did you register the component correctly? For recursive
[Vue warn]: Unknown custom element: <ag> - did you register the component correctly? For recur ...
- vue-2.5.16.js:597 [Vue warn]: Unknown custom element: ocean - did you register the component corre
vue-2.5.16.js:597 [Vue warn]: Unknown custom element: - did you register the component correctly? Fo ...
- 【 已解决】[Vue warn]:Unknown custom element: <a-calendar> - did you register the component correctly
[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive compon ...
- [Vue warn]: Unknown custom element: usertree - did you register the component correctly? For recur
[Vue warn]: Unknown custom element: <usertree> - did you register the component correctly? For ...
最新文章
- 五个最佳案例带你解读 Node.js 的前后之道
- WCF学习笔记(三):开启net.tcp端口
- JavaScript通用表单验证函数
- html svg画图
- 为程序员节省时间的习惯
- Vue 教程第十一篇—— vue-cli
- python调用flask接口实例化_常用业务接口界面化 in python flask
- MyEclipse6.5的SVN插件的安装
- linux ubuntu 安装 SSH
- 从零学React Native之11 TextInput
- 黑马程序员——JAVA学习笔记四(继承、接口、内部类)
- 20种PLC对应Modbus地址表
- 使用Java将图片转成Base64编码,并压缩至40k
- python 视频教程推荐_求各位大佬推荐Python学习视频教程?
- Scala语言的特点
- mysql 叶子节点_MySQL 树形结构 根据指定节点获取其所有叶子节点
- Intelligent Robot
- 一个例子搞懂编码问题
- 递归查询树形结构数据
- Android开发板 MTK 4g/5g 安卓开发板定制
热门文章
- python中的高级特性
- spark-3.1.2兼容多版本hive
- SpringAOP中@within和@annotation的区别
- 最新版Google Pay上传App指南
- 微生物学期末复习重点
- 渗透测试之攻击Windows认证
- AndroidStudio运行项目报build\intermediates下文件错误
- java 10.0.2 配置 bcprov-jdk-15
- 网站显示未连接上服务器,网站未连接上服务器是什么意思
- Sorry, name can only contain URL-friendly characters and name can no longer contain capital letters