工具报multiple Pages in undefined.js错误
业务需求:B项目要用到A项目部分代码
调试问题:当调试B项目时报错,如图
注意绿色部分的代码,是A中的代码才有tabBar
B项目的json文件如下:
{
"pages": [
"pages/tabBar/shop/index",
"pages/tabBar/case/index",
"pages/people/case/detail"
],
"window": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "松鼠大脑",
"navigationBarBackgroundColor": "#f8f8f8",
"backgroundColor": "#f8f8f8"
},
"tabBar": {
"color": "#888888",
"selectedColor": "#3cc51f",
"iconColor": "#3cc51f",
"borderStyle": "white",
"backgroundColor": "#f0eff5",
"list": [
{
"pagePath": "pages/tabBar/shop/index",
"iconPath": "assets/images/shopH.png",
"selectedIconPath": "assets/images/shopHL.png",
"text": "官网"
},
{
"pagePath": "pages/tabBar/case/index",
"iconPath": "assets/images/jobH.png",
"selectedIconPath": "assets/images/jobHL.png",
"text": "案例"
}
]
},
"subPackages": [
{
"root": "pages/shop/",
"pages": [
"detail"
]
}
],
"networkTimeout": {
"request": 10000,
"connectSocket": 10000,
"uploadFile": 10000,
"downloadFile": 10000
},
"debug": true
}
备注:APPID都不不一样的,开发者为同一人
尝试过的解决办法如下:
已经删除工具,工具目录都清理掉,重新安装问题依旧
无论还什么APPID,都会报上面的错误,始终加载A项目的app.json文件
现在已经影响项目B的开发,麻烦知道的同学指导下,谢谢。官方同学确认下是不是bug