林同学
林同学
  • 发布:2022-11-24 13:54
  • 更新:2022-11-24 13:54
  • 阅读:256

无法编译运行到快手小程序【报Bug】

分类:uni-app

产品分类: uniapp/小程序/快手

PC开发环境操作系统: Mac

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

HBuilderX类型: 正式

HBuilderX版本号: 3.6.5

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

基础库版本号: 1

项目创建方式: HBuilderX

示例代码:

快手小程序:
{
"pages": [
"pages/homePage/Detail/Detail",
"pages/stillsDetailPage/index",
"pagesFuli/welfareCenter/index",
"pagesCommon/ScenePage/ScenePage",
"pagesCommon/ScenePage/SonScenePage/SonScenePage",
"pagesCommon/Treaty/index",
"pagesCommon/FeedBack/index",
"pagesCommon/CustomerService/index",
"pagesCommon/webviewPage/index",
"pagesUser/ConsumeRecord/index",
"pagesUser/MyBingeWatch/index",
"pagesUser/LatelyWatch/index"
],
"subPackages": [],
"window": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "",
"navigationBarBackgroundColor": "#ffffff",
"backgroundColor": "#ffffff"
},
"tabBar": {
"color": "#8B8B8B",
"selectedColor": "#FF4141",
"borderStyle": "black",
"backgroundColor": "#ffffff",
"list": []
},
"preloadRule": {
"pages/myPage/index": {
"network": "all",
"packages": [
"pagesFuli"
]
}
},
"usingComponents": {
"zy-image": "/components/zy-image/index"
}
}

微信小程序(正常运行):
{
"pages": [
"pages/homePage/index",
"pages/myPage/index",
"pages/recommend/index",
"pages/playerDetail/index",
"pages/hotDetail/index",
"pages/bingeWatching/index",
"pages/homePage/Detail/Detail",
"pages/stillsDetailPage/index"
],
"subPackages": [
{
"root": "pagesFuli",
"pages": [
"welfareCenter/index"
]
},
{
"root": "pagesCommon",
"pages": [
"ScenePage/ScenePage",
"ScenePage/SonScenePage/SonScenePage",
"Treaty/index",
"FeedBack/index",
"CustomerService/index",
"webviewPage/index"
]
},
{
"root": "pagesUser",
"pages": [
"ConsumeRecord/index",
"MyBingeWatch/index",
"LatelyWatch/index"
]
}
],
"window": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "",
"navigationBarBackgroundColor": "#ffffff",
"backgroundColor": "#ffffff"
},
"tabBar": {
"color": "#8B8B8B",
"selectedColor": "#FF4141",
"borderStyle": "black",
"backgroundColor": "#ffffff",
"list": [
{
"pagePath": "pages/homePage/index"
},
{
"pagePath": "pages/recommend/index"
},
{
"pagePath": "pages/bingeWatching/index"
},
{
"pagePath": "pages/myPage/index"
}
]
},
"preloadRule": {
"pages/myPage/index": {
"network": "all",
"packages": [
"pagesFuli"
]
}
},
"lazyCodeLoading": "requiredComponents",
"usingComponents": {
"zy-image": "/components/zy-image/index"
}
}

操作步骤:

直接编译即可

预期结果:

希望能正常打开

实际结果:

无法正常编译

bug描述:

编译成快手小程序后,无法在快手IDE打开项目,分析dist生成的文件发现打包后文件丢失,并且app.json也少了一些缺失的页面

2022-11-24 13:54 负责人:无 分享
已邀请:

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