Vue3报错:Failed to resolve component: xx If this is a native custom element, make sure to exclude it f
Vue3报错:Failed to resolve component: xxx
(图片来源网络,侵删)
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没写对
(图片来源网络,侵删)
比如 import xx from '路径'写成了import {xx} from '路径',原因是混淆了引入组件和引入组件中的方法
(图片来源网络,侵删)
文章版权声明:除非注明,否则均为主机测评原创文章,转载或复制请以超链接形式并注明出处。
还没有评论,来说两句吧...