【前端】vue Failed to resolve component If this is a native custom element, make sure to exclude it from

2022/9/9 23:23:26

本文主要是介绍【前端】vue Failed to resolve component If this is a native custom element, make sure to exclude it from,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

一、报错

 

 

 runtime-dom.esm-bundler-daf7327a.js:1555 [Vue warn]: Failed to resolve component: myBtn

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

at <App>

 

二、原因

核心原因就是因为报警告的这个组件(myBtn)没有注册

三、解决

3.1、有可能是setup写错了(手抖写成了steup)

3.2、名称错误

 

 3.3、不用花括号

 



这篇关于【前端】vue Failed to resolve component If this is a native custom element, make sure to exclude it from的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程