风之源
风之源
  • 发布:2022-07-07 16:25
  • 更新:2022-08-01 21:40
  • 阅读:2490

[Vue warn]: Failed to resolve component: xxx

分类:nvue

[Vue warn]: Failed to resolve component: xxx
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.

HB版本3.4.18,组件是原生组件,使用正常,但是控制台一直打印这个,执行一次组件就打印一次。

2022-07-07 16:25 负责人:无 分享
已邀请:
DCloud_UNI_WZF

DCloud_UNI_WZF

isCustomElement 配置了吗?文档

  • 风之源 (作者)

    我在main.js配置了

    app.config.compilerOptions.isCustomElement = tag => tag.startsWith('sn-svg')

    2022-07-08 12:06

  • 风之源 (作者)

    这个文档里说的根本不起作用,app.config里配置根本不生效

    2022-07-08 12:35

  • DCloud_UNI_WZF

    回复 风之源: 项目创建方式 HBuilderX 还是 cli,vue 版本多少,可以提供个可复现demo吗

    2022-07-08 16:33

  • 风之源 (作者)

    回复 DCloud_UNI_WZF:我的另一个帖子里写了详细的说明

    2022-07-08 17:52

斑码开发者

斑码开发者

最后解决了吗,亲,我也遇见这个问提了

DCloud_UNI_WZF

DCloud_UNI_WZF

要回复问题请先登录注册