Vue3报错:Failed to resolve component: xx If this is a native custom element, make sure to exclude it f

02-27 1359阅读 0评论

Vue3报错:Failed to resolve component: xxx

Vue3报错:Failed to resolve component: xx If this is a native custom element, make sure to exclude it f,Vue3报错:Failed to resolve component: xx If this is a native custom element, make sure to exclude it f,词库加载错误:未能找到文件“C:\Users\Administrator\Desktop\火车头9.8破解版\Configuration\Dict_Stopwords.txt”。,最后,方法,翻译,第1张
(图片来源网络,侵删)

If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.

翻译:无法解析组件:xxx

如果这是本机自定义元素,请确保通过compiler Options.is Custom Element将其从组件解析中排除。

网上找了很多博客,都没有解决问题,最后发现是setup没加上

 

参考:

网上有很多出现此报错的原因是import没写对

Vue3报错:Failed to resolve component: xx If this is a native custom element, make sure to exclude it f,Vue3报错:Failed to resolve component: xx If this is a native custom element, make sure to exclude it f,词库加载错误:未能找到文件“C:\Users\Administrator\Desktop\火车头9.8破解版\Configuration\Dict_Stopwords.txt”。,最后,方法,翻译,第2张
(图片来源网络,侵删)

比如 import xx from '路径'写成了import {xx} from '路径',原因是混淆了引入组件和引入组件中的方法

Vue3报错:Failed to resolve component: xx If this is a native custom element, make sure to exclude it f,Vue3报错:Failed to resolve component: xx If this is a native custom element, make sure to exclude it f,词库加载错误:未能找到文件“C:\Users\Administrator\Desktop\火车头9.8破解版\Configuration\Dict_Stopwords.txt”。,最后,方法,翻译,第3张
(图片来源网络,侵删)

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

发表评论

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

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

目录[+]