pages.json 配置了 custom, 自定义组件中使用slot 报错
 
                                        
                                    
                                    - 发布:2020-05-21 15:09
- 更新:2021-03-15 01:01
- 阅读:1258
产品分类: 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  报错  
                                     
                                
                                                            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.
 
             
             
             
			 
            
3 个回复
放生就去笑灬
请问你的问题解决了吗
DCloud_UNI_GSQ
更新到新版试试
a_jser
MacOS HBuilderX3.1.4 同样问题