慢吞云雾缓吐愁 发表于 2024-7-23 01:38:37

[前端]浏览器告诫:Failed to resolve component: xxxIf this is a native

如果你在做前端时,发现图表在浏览器显示时,浏览器控制台告诫为:Failed to resolve component: xxx
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
中文翻译为:未能解析组件:xxxx如果这是一个当地自界说的元素,请确保从组件解析中排除他
原因:
这个组件没有举行注册
办理:
1.setup 拼写错误
例子:
https://img-blog.csdnimg.cn/ca4bc670e7164cae9af7007e86283724.png
应改改为:setup  多多注意单词拼写
2.引用某些组件时没有加花括号
https://img-blog.csdnimg.cn/74bd70dad0fc4b109fcbc98cc64d0288.png
正确写法
https://img-blog.csdnimg.cn/369484d1545941d5882a1d48ba36804c.png
3.components 多写 大概 忘记加括号
https://img-blog.csdnimg.cn/eeb74416ded94b358e70d7f01cf96ac4.png



免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页: [1]
查看完整版本: [前端]浏览器告诫:Failed to resolve component: xxxIf this is a native