qboy
qboy
  • 发布:2023-02-13 22:13
  • 更新:2023-09-26 10:54
  • 阅读:1117

【报Bug】发行微信小程序[ app.json 文件内容错误] app.json: pages 不能为空

分类:uni-app

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

PC开发环境操作系统: Windows

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

HBuilderX类型: 正式

HBuilderX版本号: 3.6.18

第三方开发者工具版本号: 1.06

基础库版本号: 2.30.0

项目创建方式: HBuilderX

操作步骤:

发行微信小程序

预期结果:

发行微信小程序

实际结果:

[ app.json 文件内容错误] app.json: pages 不能为空

打开app.json文件,只有如下内容:
{
"component": true,
"usingComponents": {}
}

bug描述:

编译成微信小程序时有如下提示:
[HBuilder] 22:08:38.998 vite v3.2.4 building for production...
[HBuilder] 22:09:38.617 ​The emitted file "App.json" overwrites a previously emitted file of the same name.​
[HBuilder] 22:09:38.617 ​The emitted file "App.wxss" overwrites a previously emitted file of the same name.​

编译完成后,微信小程序开发工具提示:
[ app.json 文件内容错误] app.json: pages 不能为空

打开app.json文件,只有如下内容:
{
"component": true,
"usingComponents": {}
}

缺少pages等,缺的东西太多了,这么大的问题只有我碰到了?还是用的人太少了?

2023-02-13 22:13 负责人:无 分享
已邀请:
DCloud_UNI_WZF

DCloud_UNI_WZF

测试新建默认模板是否存在该问题,如不存在,对比代码修改

m***@luy2010.com

m***@luy2010.com

昨天下班的时候代码还好好的,今天早上就跑不起来了,也没动过代码,就突然多出来一条提示
The emitted file "App.json" overwrites a previously emitted file of the same name.

然后app.json就变成跟楼主一样的了。

1***@qq.com

1***@qq.com

我也是,不知道什么情况啊

要回复问题请先登录注册