报错截图:

报错信息:

[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?相关推荐

  1. 解决:Unknown custom element: <> - did you register the component correctly? For recursive compon

    出现Unknown custom element: <> - did you register the component correctly? For recursive compon ...

  2. 前端开发:Vue项目报错Unknown custom element:XXX - did you register the component correctly…的解决方法丨蓄力计划

    导读 Vue项目报错Unknown custom element:XXX - did you register the component correctly-的解决方法. 问题 前段时间在做前端项目 ...

  3. 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 ...

  4. [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 ...

  5. [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 ...

  6. [Vue warn]: Unknown custom element: <Top> - did you register the component correctly?

    [Vue warn]: Unknown custom element: - did you register the component correctly? 错误如下: 出现错误的原因有以下几种: ...

  7. 解决[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 ...

  8. 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 ...

  9. 【 已解决】[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 ...

  10. [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 ...

最新文章

  1. 五个最佳案例带你解读 Node.js 的前后之道
  2. WCF学习笔记(三):开启net.tcp端口
  3. JavaScript通用表单验证函数
  4. html svg画图
  5. 为程序员节省时间的习惯
  6. Vue 教程第十一篇—— vue-cli
  7. python调用flask接口实例化_常用业务接口界面化 in python flask
  8. MyEclipse6.5的SVN插件的安装
  9. linux ubuntu 安装 SSH
  10. 从零学React Native之11 TextInput
  11. 黑马程序员——JAVA学习笔记四(继承、接口、内部类)
  12. 20种PLC对应Modbus地址表
  13. 使用Java将图片转成Base64编码,并压缩至40k
  14. python 视频教程推荐_求各位大佬推荐Python学习视频教程?
  15. Scala语言的特点
  16. mysql 叶子节点_MySQL 树形结构 根据指定节点获取其所有叶子节点
  17. Intelligent Robot
  18. 一个例子搞懂编码问题
  19. 递归查询树形结构数据
  20. Android开发板 MTK 4g/5g 安卓开发板定制

热门文章

  1. python中的高级特性
  2. spark-3.1.2兼容多版本hive
  3. SpringAOP中@within和@annotation的区别
  4. 最新版Google Pay上传App指南
  5. 微生物学期末复习重点
  6. 渗透测试之攻击Windows认证
  7. AndroidStudio运行项目报build\intermediates下文件错误
  8. java 10.0.2 配置 bcprov-jdk-15
  9. 网站显示未连接上服务器,网站未连接上服务器是什么意思
  10. Sorry, name can only contain URL-friendly characters and name can no longer contain capital letters