vue 报警告:Failed to resolve component:ConsTtem IFthis is a native custom element,make sure to exclude

警告信息 :

Failed to resolve component:ConsTtem IFthis is a native custom element,make sure to exclude it from component resolution via cpmpilerOptions.isCustomElement at xxx .

翻译一下就是:

未能解析组件:constem如果此元素是本机自定义元素,请确保将其从组件中排除通过cpmpilerOptions.isCustomElement 在 xxx 组件(下面截图就是 TodayList、TodayPage组件里) 。

vue 报警告:Failed to resolve component:ConsTtem IFthis is a native custom element,make sure to exclude

报错原因是:引入组件 方式错误了 ,以对象形式引入 的。 自定义的组件 直接引入 就可以了 。

解决方式:

正常以组件引入就行, {}形式的引入 需要 做一个 封装 统一封装到一个 对象里 。一般 ui库 可以这么用

总结:

遇到 警告和报错 英文不好可以用翻译软件翻译一下,有助于 理解,更好的解决问题。

文章知识点与官方知识档案匹配,可进一步学习相关知识Vue入门技能树首页概览23192 人正在系统学习中

来源:崽崽的谷雨

声明:本站部分文章及图片转载于互联网,内容版权归原作者所有,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2022年5月15日
下一篇 2022年5月15日

相关推荐