小程序
小游戏
企业微信
微信支付
扫描小程序码分享
app.json分包后出现这个错误,不知道怎么改,头疼死了,有没有解决办法呀,网上都是文件找不到的问题,我这个不是
3 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
app.json报错怎么解决
{
"pages": [
"pages/login",
"pages/index",
"pages/work/index",
"pages/common/webview/index",
"pages/common/textview/index",
"pages/mine/index"
],
"subPackages": [
"root": "qc",
"updateStandardList",
"iqc",
"ipqc",
"fqc",
"oqc"
"name": "qc"
},
"root": "srm",
"antiCrossCargoIn",
"antiiCrossCargoQuery"
"name": "srm"
"root": "wms",
"purchase/purchaseSh",
"purchase/purchaseRk",
"purchase/purchaseQualityT",
"pdcIn/pdcInQualityT",
"pdcIn/pdcRk",
"pdcIn/pdcSh",
"pdcMaterial/pdcCk",
"pdcMaterial/pdcPick",
"pdcMaterial/directCk",
"pdcIn/directRk",
"sale/saleCk",
"sale/salePick",
"inventory/inventorySheet"
"name": "wms"
"root": "mes",
"jobReport/pass",
"jobReport/defect",
"jobReport/scrap",
"jobCv/jobIn",
"jobCv/pwoDraw",
"jobCv/pwoIn",
"jobCv/jobBindEqp"
"name": "mes"
"root": "mine",
"avatar/index",
"info/index",
"info/edit",
"pwd/index",
"setting/index",
"help/index",
"about/index"
"name": "mine"
}
"window": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "Green",
"navigationBarBackgroundColor": "#FFFFFF"
"tabBar": {
"color": "#000000",
"selectedColor": "#000000",
"borderStyle": "white",
"backgroundColor": "#ffffff",
"list": [
"pagePath": "pages/index",
"iconPath": "static/images/tabbar/home.png",
"selectedIconPath": "static/images/tabbar/home_.png",
"text": "首页"
"pagePath": "pages/work/index",
"iconPath": "static/images/tabbar/work.png",
"selectedIconPath": "static/images/tabbar/work_.png",
"text": "工作台"
"pagePath": "pages/mine/index",
"iconPath": "static/images/tabbar/mine.png",
"selectedIconPath": "static/images/tabbar/mine_.png",
"text": "我的"
"fontSize": "20px",
"height": "100px"
"usingComponents": {}
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
把app.json代码粘贴出来,还有就是为啥叫 app.json.json
"list": [{
},{
}, {
]
提示app.json 有错误,这个文件仔细检查下格式,可能是分包修改app.json导致的。
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
app.json报错怎么解决
{
"pages": [
"pages/login",
"pages/index",
"pages/work/index",
"pages/common/webview/index",
"pages/common/textview/index",
"pages/mine/index"
],
"subPackages": [
{
"root": "qc",
"pages": [
"updateStandardList",
"iqc",
"ipqc",
"fqc",
"oqc"
],
"name": "qc"
},
{
"root": "srm",
"pages": [
"antiCrossCargoIn",
"antiiCrossCargoQuery"
],
"name": "srm"
},
{
"root": "wms",
"pages": [
"purchase/purchaseSh",
"purchase/purchaseRk",
"purchase/purchaseQualityT",
"pdcIn/pdcInQualityT",
"pdcIn/pdcRk",
"pdcIn/pdcSh",
"pdcMaterial/pdcCk",
"pdcMaterial/pdcPick",
"pdcMaterial/directCk",
"pdcIn/directRk",
"sale/saleCk",
"sale/salePick",
"inventory/inventorySheet"
],
"name": "wms"
},
{
"root": "mes",
"pages": [
"jobReport/pass",
"jobReport/defect",
"jobReport/scrap",
"jobCv/jobIn",
"jobCv/pwoDraw",
"jobCv/pwoIn",
"jobCv/jobBindEqp"
],
"name": "mes"
},
{
"root": "mine",
"pages": [
"avatar/index",
"info/index",
"info/edit",
"pwd/index",
"setting/index",
"help/index",
"about/index"
],
"name": "mine"
}
],
"window": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "Green",
"navigationBarBackgroundColor": "#FFFFFF"
},
"tabBar": {
"color": "#000000",
"selectedColor": "#000000",
"borderStyle": "white",
"backgroundColor": "#ffffff",
"list": [
{
"pagePath": "pages/index",
"iconPath": "static/images/tabbar/home.png",
"selectedIconPath": "static/images/tabbar/home_.png",
"text": "首页"
},
{
"pagePath": "pages/work/index",
"iconPath": "static/images/tabbar/work.png",
"selectedIconPath": "static/images/tabbar/work_.png",
"text": "工作台"
},
{
"pagePath": "pages/mine/index",
"iconPath": "static/images/tabbar/mine.png",
"selectedIconPath": "static/images/tabbar/mine_.png",
"text": "我的"
}
],
"fontSize": "20px",
"height": "100px"
},
"usingComponents": {}
}
把app.json代码粘贴出来,还有就是为啥叫 app.json.json
"navigationBarTitleText": "Green",
"navigationBarBackgroundColor": "#FFFFFF"
},
"tabBar": {
"color": "#000000",
"selectedColor": "#000000",
"borderStyle": "white",
"backgroundColor": "#ffffff",
"list": [{
"pagePath": "pages/index",
"iconPath": "static/images/tabbar/home.png",
"selectedIconPath": "static/images/tabbar/home_.png",
"text": "首页"
},{
"pagePath": "pages/work/index",
"iconPath": "static/images/tabbar/work.png",
"selectedIconPath": "static/images/tabbar/work_.png",
"text": "工作台"
}, {
"pagePath": "pages/mine/index",
"iconPath": "static/images/tabbar/mine.png",
"selectedIconPath": "static/images/tabbar/mine_.png",
"text": "我的"
}
]
}
}
提示app.json 有错误,这个文件仔细检查下格式,可能是分包修改app.json导致的。