报错Unknown custom element: <di> - did you register the component correctly? For recursive components,

03-15 1145阅读 0评论

百度了这个报错信息,发现出现的情况有两种,注意报错的内容,看清楚。分析了下,出现的情况进行一个总结

报错Unknown custom element: <di> - did you register the component correctly? For recursive components,,报错Unknown custom element: <di> - did you register the component correctly? For recursive components,,词库加载错误:未能找到文件“C:\Users\Administrator\Desktop\火车头9.8破解版\Configuration\Dict_Stopwords.txt”。,方法,分析,百度,第1张
(图片来源网络,侵删)

Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the “name” option.

这个报错是组件内有标签打错了,浏览器无法识别,需要自己去好好找下,我就是把div打成了di所以报错,找了很久。
还有一种类似的情况,但是解决起来完全不一样,这是我看的别人的方法,自己暂时还没有遇到,这种情况也要注意

报错Unknown custom element: <组件名> - did you register the component correctly?这是别人遇到并写的的原因及解决办法

1、组件名字是否写对了
2、import xxx from “./xxx.vue” 写成了import { xxx} from “./xxx.vue”/
3、代码中有两个components,后一个的值把前一个覆盖了
4、组件直接循环套用了

解决(第四种)

在出现的问题中A,B两个组件,渲染A组件的时候,A组件中引入了B组

报错Unknown custom element: <di> - did you register the component correctly? For recursive components,,报错Unknown custom element: <di> - did you register the component correctly? For recursive components,,词库加载错误:未能找到文件“C:\Users\Administrator\Desktop\火车头9.8破解版\Configuration\Dict_Stopwords.txt”。,方法,分析,百度,第2张
(图片来源网络,侵删)
报错Unknown custom element: <di> - did you register the component correctly? For recursive components,,报错Unknown custom element: <di> - did you register the component correctly? For recursive components,,词库加载错误:未能找到文件“C:\Users\Administrator\Desktop\火车头9.8破解版\Configuration\Dict_Stopwords.txt”。,方法,分析,百度,第3张
(图片来源网络,侵删)

免责声明
本网站所收集的部分公开资料来源于AI生成和互联网,转载的目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。
文章版权声明:除非注明,否则均为主机测评原创文章,转载或复制请以超链接形式并注明出处。

发表评论

快捷回复: 表情:
评论列表 (暂无评论,1145人围观)

还没有评论,来说两句吧...

目录[+]