今天在开发项目的时候遇到很大坑。项目报错did you register the component correctly? For recursive components, make sure to provide the “name” option.

在一般情况下使用,这样注册并没有问题

import Editors from '@/components/EmbedResourcesText'//
export default {components: {Editors,},
}

但当这个组件被多个父组件同时调用了。 就会出现did you register the component correctly? For recursive components, make sure to provide the “name” option.报错

需要在components里面这样写引入

export default {components: { Editors: () => import ('@/components/EmbedResourcesText') }
}

报错就会消失 问题得到解决

Vue报错------did you register the component correctly? For recursive components, make sure to provide相关推荐

  1. 异常 did you register the component correctly? For recursive components, make sure to provide the “nam

    1.vue项目使用抽屉组件时候报错did you register the component correctly? For recursive components, make sure to pr ...

  2. did you register the component correctly? For recursive components, make sure to provide the “name“

    问题回溯: 这里组件中引用自身[递归组件]时,报错did you register the component correctly? For recursive components, make su ...

  3. vue启动时报错——did you register the component correctly? For recursive components

    原来是因为我的组件大小写开头混了,我在template中写的是小写开头的batchnumSelect,但是注册的时候是注册成大写开头,所以导致报错 解决:改成一致即可

  4. 解决:id you register the component correctly? For recursive components, make sure to provide the “name

    引用一个组件报错:

  5. Vue did you register the component correctly? For recursive components,make sure to provide the name

    问题截图 组件嵌套 AppMyComponentADifferentComponentMyComponent 问题原因 这里的问题是,MyComponent既是它自己的父组件,又是它自己的子组件.这将 ...

  6. 关于报错Unknown custom element:did you register the component correctly? For recursive components的解决方式

    报错: [Vue warn]: Unknown custom element: <d01-person-thing> - did you register the component co ...

  7. 控制台报错element: <Goods> - did you register the component correctly? For recursive components, make sur

    element: - did you register the component correctly? For recursive components, make sure to provide ...

  8. vue注入组件时报错:did you register the component correctly? For recursive components......

    报错信息: vue.runtime.esm.js?2b0e:619 [Vue warn]: Unknown custom element: - did you register the compone ...

  9. vue出现您是否正确注册了组件? 对于递归组件,请确保提供“名称”选项。或者you register the component correctly? For recursive components

    XXX - did you register the component correctly? For recursive components, make sure to provide the & ...

最新文章

  1. python可以做测试软件吗_Python如何给你的程序做性能测试
  2. 一文详解计算机视觉的广泛应用:网络压缩、视觉问答、可视化、风格迁移等
  3. Nagios Web 页面声音报警
  4. 复合梯形公式与复合辛普森公式matlab_【IBE】关于电缆桥架的安装,一定要知道的两个公式!...
  5. 使用String.intern减少内存使用
  6. 敏捷与 DevOps:是敌是友?
  7. 解决办法:syslinux:Accessing physical drive
  8. ORAN专题系列-5:5G O-RAN 一体式小基站硬件白盒化的参考架构
  9. 最简单!阿里云服务器采用 LNMP一键安装包 配置 Linux+Nginx+Mysql+PHP
  10. 如何调整c盘分区大小,怎样把c盘空间调整小些
  11. 带你玩转区块链--区块链面试问题及答案-第四章【总结篇】
  12. 产品线架构设计的基本步骤
  13. 五百亿!又一大型平台崩了!85后女老板跑路!
  14. 阿里云神龙团队拿下TPCx-BB排名第一的背后技术是什么?
  15. TCP协议-TCP连接管理
  16. 技术的魅力在于融汇惯通
  17. ## 虚幻四引擎学习——初学者
  18. jodaTime 的使用说明
  19. 复旦大学计算机导师评价与简介
  20. 上海交大计算机专业挂科,上海交大,3名本科生绩点不足1.0被勒令退学,大学不挂科很难?...

热门文章

  1. linux系统安装mysql详细教程
  2. Scrapy学习笔记 爬取w3school
  3. 揭秘考研英语阅读理解技巧(何凯文)
  4. Java高级工程师面试题整理
  5. 从实际出发,改变自己。
  6. 红旗linux10应用软件,红旗操作系统下载-红旗操作系统v10 官方版下载-6188手游网...
  7. 行业研究分析-全球与中国Type-C数据线市场现状及未来发展趋势
  8. 直播代码Flutter 实现虎牙/斗鱼 弹幕效果
  9. 颠覆IoT行业的开发神器!涂鸦智能重磅推出TuyaOS操作系统【程序员必备】
  10. 奥的斯机电物联网中心和现代化改造展厅在杭州启幕