老哥这个问题解决了吗
miniprogram-cihttps://developers.weixin.qq.com/miniprogram/dev/devtools/ci.html 通过异步的方式 上传一个小程序成功之后再上传另一个提示child process stderr: getAppJSON error TypeError: Cannot destructure property 'setting' of 'r' as it is undefined.这个是什么问题呢
06-17第一次是可以成功上传的,到第二次就直接失败
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[图片]
06-17