d***@anylink.io
d***@anylink.io
  • 发布:2024-04-03 11:27
  • 更新:2024-04-03 11:31
  • 阅读:30

【报Bug】easycom 无法正常编译的问题

分类:uni-app

产品分类: uniapp/H5

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win10专业版 22H2

浏览器平台: Chrome

浏览器版本: 123.0.6312.106(正式版本) (64 位)

项目创建方式: CLI

CLI版本号: 3.8.12

操作步骤:

启动到浏览器就会出现

预期结果:

正常编译,页面内容均正常显示

实际结果:

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

bug描述:

使用第三方组件库 uview-plus,main.ts 挂载了uview-plus,

pages.json 配置了easycom => "easycom": {
"autoscan": true,
"custom": {
"^uni-(.)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue",
"^u-(.
)": "uview-plus/components/u-$1/u-$1.vue"
}
},

运行到浏览器报错 [Vue warn]: Failed to resolve component: u-popup
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement
页面上显示不出组件,HBX4.0.8 4.0.6 均有这个问题。

2024-04-03 11:27 负责人:无 分享
已邀请:
d***@anylink.io

d***@anylink.io (作者)

easycom中的自动扫描去掉,热更新之后页面显示正常,但是控制台依旧报错 [Vue warn]: Failed to resolve component: u-popup
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement
重新刷新也没问题,但是重新启动依旧显示不了组件

要回复问题请先登录注册