【前端】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的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-03-30[OIDC in Action] 2. 基于OIDC(OpenID Connect)的SSO(纯JS客户端)
- 2024-03-29terraform jsonencode
- 2024-03-13vuex-persist
- 2024-03-11icons for vue
- 2024-03-07breadcrumbs react js
- 2024-03-06react login page example
- 2024-03-06react router uselocation
- 2024-03-04postgres jsonb_set
- 2024-03-01react native uuid
- 2024-02-29vuejs sidebar