i***@163.com
i***@163.com
  • 发布:2020-05-21 15:09
  • 更新:2021-03-15 01:01
  • 阅读:989

【报Bug】easycom 与 slot 冲突

分类:uni-app

产品分类: uniapp/小程序/微信

PC开发环境操作系统: Mac

PC开发环境操作系统版本号: 最新版

HBuilderX类型: 正式

HBuilderX版本号: 2.7.5

第三方开发者工具版本号: v1.02.1911180

基础库版本号: 2.9.2

项目创建方式: HBuilderX

操作步骤:

pages.json 配置了 custom, 自定义组件中使用slot 报错

预期结果:

pages.json 配置了 custom, 自定义组件中使用slot 正常使用

实际结果:

pages.json 配置了 custom, 自定义组件中使用slot 报错

bug描述:

pages.json 配置了 custom, 自定义组件中使用slot 报错

custom 示例

"easycom": {
"autoscan": true,
"custom": {
"(.*)": "@/components/$1/$1.vue"
}
}

// 错误

文件查找失败:'@/components/slot/slot.vue' at components/acticon-sheet/acticon-sheet.vue:3
15:02:04.019 ERROR Build failed with errors.

2020-05-21 15:09 负责人:无 分享
已邀请:
放生就去笑灬

放生就去笑灬

请问你的问题解决了吗

DCloud_UNI_GSQ

DCloud_UNI_GSQ

更新到新版试试

a_jser

a_jser

MacOS HBuilderX3.1.4 同样问题

该问题目前已经被锁定, 无法添加新回复