miniprogram-ci 循环调用第二次必定报错问题?
const uploadCode = async (shopInfo) => { loadStart(`上传代码到店铺${shopInfo.shopName}-appId:${shopInfo.appId}`) try { const project = new ci.Project({ appid: shopInfo.appId, type: 'miniProgram', projectPath: MP_WX_PROJECT_PATH, privateKeyPath: UPLOAD_SECRET_KEY_PATH + `/private.${shopInfo.appId}.key`, ignores: ['node_modules/**/*'], }) const uploadResult = await ci.upload({ project, version: '0.0.1', desc: '测试', setting: { es6: true, }, onProgressUpdate: console.log, }) loadSuccess() } catch(err) { loadFail() uploadFailedShop.collect(shopInfo) } } 为什么我循环调用上传代码的代码,循环到第二次就一定会报错: child process stderr: getAppJSON error TypeError: Cannot destructure property 'setting' of 'r' as it is undefined[图片]