昨天修复了一些bug 可以再试试
miniprogram-ci 使用 getDevSourceMap 报错?miniprogram-ci 使用 getDevSourceMap 报错 request failed, errCode: -1, errMsg: inner download source map fail with errcode: -80407, errmsg: 请确认是拉上传版的 sourcemap,且上传和拉 sourcemap 时指定了同一个ci机器人。 反复确认过preview 和 upload 以及 随后的 getDevSourceMap 方法 都是使用 robot: 1 与上传代码使用的一致 错误小程序 appId: wx40ddbc37ec3a370c 其他小程序使用同样的构建流程是没问题的,唯独这个有问题,并且前几天也是可用的。 失败时间 2025-11-13 16:53:00 左右 失败时间 2025-11-13 16:19:00 左右 成功时间 2025-11-07 13:42:00 左右
10小时前该账号确实没有。确认自己的上传逻辑
miniprogram-ci获取sourcemap失败三方小程序,第三方平台 appid:wx2dc98d550e05c685 调用getDevSourceMap报错如下: Error: request failed, errCode: -1, errMsg: inner download source map fail with errcode: -80407, errmsg: 请确认是拉上传版的 sourcemap,且上传和拉 sourcemap 时指定了同一个ci机器人。 2025/11/10都没有问题,已检查是同一个ci机器人
2天前更新到ci版本比较新的试试
miniprogram-ci 上传代码报错?报错信息如下: miniprogram-ci版本: 2.0.10 node版本:v20.11.1 该如何处理? child process stdout: !!! getCodeFiles: count: 485, cost: 164830ms. TaskStatus { _status: 'doing', _msg: 'upload', _id: '0.4726180654721771762761953259' } [info] useCOS parameter: undefined [info] upload zip buffer size: 9366884 [info] upload by COS: true { code: 'ECONNRESET', name: 'ECONNRESET', message: 'tunneling socket could not be established, statusCode=403', url: 'https://mmbiz-wxasource-cos-1258344707.cos.ap-shanghai.tencentcos.cn/DB_998/998_3954734811_3192371438_1_1', method: 'PUT' } [error] 20003 TypeError: Cannot read properties of undefined (reading 'message') 2025-11-10'T'16:05:55.159 [ERROR] [mpcodelog:] -- CodeError: TypeError: Cannot read properties of undefined (reading 'message') at innerUpload (/app/deploy/node_modules/miniprogram-ci/dist/ci/upload.js:1:4257) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async upload (/app/deploy/node_modules/miniprogram-ci/dist/ci/upload.js:1:1052) at async Object.<anonymous> (/app/deploy/node_modules/miniprogram-ci/dist/utils/report.js:1:1426) at async uploadWmpCode (/app/deploy/service/mpcode.js:425:5) at async module.exports.uploadCode (/app/deploy/service/mpcode.js:151:9) { code: 20003 }
2天前调用await ci.upload() 一直没有问题 修复的是 命令行调用的情况
ci自动上传失败?miniprogram-ci版本从1.9.8 升级至 2.1.26。调用await ci.upload(),始终无法获取结果,阻塞了后续业务流程。 版本更新日志看到如下:确定修复好了吗?[图片]
10-27看起来是你的代码pages/account-setting/index.js中的 _lrucache写法有问题 ci 版本用到的babel可能和你之前的babel版本不一样。处理起来不一样。babel版本可在package.json中找到
小程序同样的代码开发者工具可以上传,但是小程序的ci工具报 _lruCachehttps://developers.weixin.qq.com/miniprogram/dev/devtools/ci.html 环境: node: 18.19 pnpm: 8.15.9 miniprogram-ci: 2.1.26 _lruCache非我项目依赖,构建的dist也并无此内容 报错日志如下: { id: '50000028', message: 'Error: file: pages/account-setting/index.js\n' + ' _lruCache is not a constructor', status: 'fail' } { id: '50000029', message: 'Error: file: pages/account-setting/index.js\n' + ' _lruCache is not a constructor', status: 'fail' } { id: '50000003', message: 'Error: file: pages/account-setting/index.js\n' + ' _lruCache is not a constructor', status: 'fail' } 上传失败 CustomError: file: pages/account-setting/index.js _lruCache is not a constructor at enhance (/xxxxxxx/project/node_modules/.pnpm/miniprogram-ci@2.1.26_eslint@8.57.1/node_modules/miniprogram-ci/dist/modules/corecompiler/summer/plugins/enhance.js:1:1579) at doTransform (/xxxxxxx/project/node_modules/.pnpm/miniprogram-ci@2.1.26_eslint@8.57.1/node_modules/miniprogram-ci/dist/modules/corecompiler/summer/plugins/enhance.js:1:1827) at Object.runSummerPluginHook (/xxxxxxx/project/node_modules/.pnpm/miniprogram-ci@2.1.26_eslint@8.57.1/node_modules/miniprogram-ci/dist/modules/corecompiler/summer/worker.js:1:1239) { code: 10045, path: 'dist/pages/account-setting/index.js' } node:internal/process/promises:288 triggerUncaughtException(err, true /* fromPromise */); ^ CustomError: file: pages/account-setting/index.js _lruCache is not a constructor at enhance (/xxxxxxx/project/node_modules/.pnpm/miniprogram-ci@2.1.26_eslint@8.57.1/node_modules/miniprogram-ci/dist/modules/corecompiler/summer/plugins/enhance.js:1:1579) at doTransform (/xxxxxxx/project/node_modules/.pnpm/miniprogram-ci@2.1.26_eslint@8.57.1/node_modules/miniprogram-ci/dist/modules/corecompiler/summer/plugins/enhance.js:1:1827) at Object.runSummerPluginHook (/xxxxxxx/project/node_modules/.pnpm/miniprogram-ci@2.1.26_eslint@8.57.1/node_modules/miniprogram-ci/dist/modules/corecompiler/summer/worker.js:1:1239) { code: 10045, path: 'dist/pages/account-setting/index.js' } Node.js v18.19.0 Process finished with exit code 1
10-11ci 版本是什么?有没代码片段
通过miniprogram-ci上传程序包报错,无法定位到错误源?上传过程中会报以下错误。 但是无法定位到是哪一个文件在报错? 如果使用微信开发者工具进行打包上传就可以正常上传。 child process stdout: runAllAsync error: [CustomError: Error: Cannot read properties of undefined (reading 'Descendant') ] { code: 10045, plugin: 'summer-wxss', hook: 'optimize' } { id: '50000004', message: "Error: Cannot read properties of undefined (reading 'Descendant')\n", status: 'fail' }
10-11已修复 可以再试试
ip白名单已经配置,ci上传代码还是报错https://developers.weixin.qq.com/miniprogram/dev/devtools/ci.htmlhttps://developers.weixin.qq.com/miniprogram/dev/devtools/ci.html ip xx.x.xx.xx 白名单已经配置了,还是报错 20003 Error: {"errCode":-10008,"errMsg":"invalid ip: xx.x.xx.xx, reference: https://developers.weixin.qq.com/miniprogram/dev/devtools/ci.html"} CodeError: Error: {"errCode":-10008,"errMsg":"invalid ip: xx.x.xx.xx, reference: https://developers.weixin.qq.com/miniprogram/dev/devtools/ci.html"}
10-10已修复 可以再试试
ci机器人/CI工具推送代码库失败(80%概率推送失败),有知道什么原因吗?CI工具推送代码库失败(80%概率推送失败),有知道什么原因吗?[图片]
10-10private key 错误。 重新生成key的时候,要关闭浏览器插件,或使用无痕模式
CI报错 get new ticket fail innerCode: -80011?CodeError: Error: {"errCode":-1,"errMsg":"get new ticket fail innerCode: -80011"} at innerUpload (/home/gitlab-runner/builds/Lmiy6ZAB/0/ifirst/miniprogrammonorepo/node_modules/miniprogram-ci/dist/ci/upload.js:2:4091) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async upload (/home/gitlab-runner/builds/Lmiy6ZAB/0/ifirst/miniprogrammonorepo/node_modules/miniprogram-ci/dist/ci/upload.js:2:1014) at async Object.upload (/home/gitlab-runner/builds/Lmiy6ZAB/0/ifirst/miniprogrammonorepo/node_modules/miniprogram-ci/dist/utils/report.js:2:1403) at async upload (/home/gitlab-runner/builds/Lmiy6ZAB/0/ifirst/miniprogrammonorepo/packages/dtonetouchplus/ci/wx/index.js:45:3) { code: 20003 } 确认小程序appid和ci key对应得上 确认小程序代码上传密钥重新生成几次未解决 发生时间:2025年9月17日20点27分左右 appid: wx964ac644b4bbd352 时 间
09-18npm包的autoprefixer的依赖browserslist latest 不支持低版本的node。 可以自己尝试锁定一下 "name": "browserslist", "version": "4.24.4", 或是使用基于2.1.27的 2.1.28
为何miniprogram-ci 发布报错,无法使用?{"id":"50000020","message":"Error: file: comp.js\n require() of ES Module /root/.npm/_npx/a93b959afbcaed73/node_modules/baseline-browser-mapping/dist/index.js from /root/.npm/_npx/a93b959afbcaed73/node_modules/browserslist/index.js not supported.\nInstead change the require of /root/.npm/_npx/a93b959afbcaed73/node_modules/baseline-browser-mapping/dist/index.js in /root/.npm/_npx/a93b959afbcaed73/node_modules/browserslist/index.js to a dynamic import() which is available in all CommonJS modules.","status":"fail"} [log] {"id":"50000021","message":"Error: file: comp.js\n require() of ES Module /root/.npm/_npx/a93b959afbcaed73/node_modules/baseline-browser-mapping/dist/index.js from /root/.npm/_npx/a93b959afbcaed73/node_modules/browserslist/index.js not supported.\nInstead change the require of /root/.npm/_npx/a93b959afbcaed73/node_modules/baseline-browser-mapping/dist/index.js in /root/.npm/_npx/a93b959afbcaed73/node_modules/browserslist/index.js to a dynamic import() which is available in all CommonJS modules.","status":"fail"} child process stdout: runAllAsync error: CustomError: file: comp.js require() of ES Module /root/.npm/_npx/a93b959afbcaed73/node_modules/baseline-browser-mapping/dist/index.js from /root/.npm/_npx/a93b959afbcaed73/node_modules/browserslist/index.js not supported. Instead change the require of /root/.npm/_npx/a93b959afbcaed73/node_modules/baseline-browser-mapping/dist/index.js in /root/.npm/_npx/a93b959afbcaed73/node_modules/browserslist/index.js to a dynamic import() which is available in all CommonJS modules. at enhance (/root/.npm/_npx/a93b959afbcaed73/node_modules/miniprogram-ci/dist/modules/corecompiler/summer/plugins/enhance.js:1:1579) at doTransform (/root/.npm/_npx/a93b959afbcaed73/node_modules/miniprogram-ci/dist/modules/corecompiler/summer/plugins/enhance.js:1:1827) at Object.runSummerPluginHook (/root/.npm/_npx/a93b959afbcaed73/node_modules/miniprogram-ci/dist/modules/corecompiler/summer/worker.js:1:1239) { code: 10045, plugin: 'summer-enhance', hook: 'transform', path: 'comp.js' } 通过gitlab ci的构建提示以上错误 npx --yes miniprogram-ci upload \ -r $ROBOT_NO --uv "$CI_COMMIT_BRANCH" --ud "$CI_COMMIT_MESSAGE" \ --pp ./web_resv/dist \ --appid xxxx \ --pkp ./web_resv/config/private.xxx.key \ --enable-es6 true
09-15