其他分享
首页 > 其他分享> > 【前端】vue Failed to resolve component If this is a native custom element, make sure to exclude it from

【前端】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,make,component,Failed,via,isCustomElement,exclude,native
来源: https://www.cnblogs.com/danhuai/p/16673754.html