可以用 getCompiledResult 获取一下 ci 的 产物。对比看看 多了什么
使用miniprogram-ci新版本上传代码主包多了600Kb?相同的代码使用 miniprogram-ci 2.1.26 版本进行代码的上传 主包2012kb, 在开发者工具看主包大小也是2012kb。 但是使用版本miniprogram-ci 2.1.32 进行代码上传 主包大小就直接到了2674kb。[图片] 不知道新版本的cli里面做了什么,导致主包大了这么多。 这是使用老版本的cli正常上传代码的截图主包大小并没有提示超限制。 [图片]
星期四 14:39已知 正在统一修复中。可以先不更新到最新的 nightly
mac系统下使用最新微信小程序开发工具进行无法iOS真机调试[图片] 小程序可正常调试,但小游戏iOS系统一直显示灰色无法选择,已尝试过安装不同版本的微信小程序开发工具,清理缓存,重启电脑 也无法解决
03-263.15.1 工具重启之后应该能拉到 正在灰度中
3.15.0基础库版本微信开发工具真机调一直触发SdkReport?当前微信小程序开发工具版本:2.01.2510260 won32-x64,小程序基础库版本:3.15.0,今日小程序真机调试发现,调试控制台一直报sdkreport,会导致请求变慢或超时,经排查微信app中的小程序基础库版本自动更新为了3.15.1 ,当基础库为3.15.1时会导致一直报sdkreport及请求超时,当把微信开发工具上上的3.15.0基础库版本推到微信后,真机调试控制台不再报sdkreport,且不会出现请求异常,怀疑是因为微信app默认更新的3.15.1版本与微信开发工具中最新的基础库版本3.15.0不一致引起的,当前微信开发工具中最新的版本是3.15.0,该问题如何解决。
03-26已知问题 下一个版本 修复
Mac Arm 版本工具最新开发版无法预览?[图片] 开发者工具版本:2.02.2603212 电脑:Mac Mini M4 系统: 26.3.2
03-25确认一下 系统设置有没有拦截下载的软件的启动
Macbook pro 笔记本电脑(M5pro 芯片)安装开发工具后无法打开https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html
03-25确认 key 是对的吧。你可以去网页上重新生成 key ,可以确定网页没有用什么插件(比如用无痕模式去更新 key)
miniprogram-ci 一次性上传三个小程序,最后一个异常报错miniprogram-ci 一次性上传三个小程序,最后一个异常报错,本身白名单和密钥都已经配置正确 [10:59:02 AM] app3_jzgl 上传进度: upload [info] useCOS parameter: true [info] upload zip buffer size: 5851742 [info] upload by COS: true [error] request failed, errCode: -1, errMsg: inner get upload info for cos safely fail with errcode: 41001, errmsg: access_token missing [rid: 27c6f014-1773716343] getUploadInfo failed Error: request failed, errCode: -1, errMsg: inner get upload info for cos safely fail with errcode: 41001, errmsg: access_token missing [rid: 27c6f014-1773716343] at innerRequest (/root/deploy/miniapp-health/node_modules/.pnpm/miniprogram-ci@2.1.26_eslint@8.57.1/node_modules/miniprogram-ci/dist/ci/cos-upload.js:1:1466) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async uploadByCosSafely (/root/deploy/miniapp-health/node_modules/.pnpm/miniprogram-ci@2.1.26_eslint@8.57.1/node_modules/miniprogram-ci/dist/ci/cos-upload.js:1:3131) at async innerUpload (/root/deploy/miniapp-health/node_modules/.pnpm/miniprogram-ci@2.1.26_eslint@8.57.1/node_modules/miniprogram-ci/dist/ci/upload.js:1:3437) at async upload (/root/deploy/miniapp-health/node_modules/.pnpm/miniprogram-ci@2.1.26_eslint@8.57.1/node_modules/miniprogram-ci/dist/ci/upload.js:1:1017) at async Object.<anonymous> (/root/deploy/miniapp-health/node_modules/.pnpm/miniprogram-ci@2.1.26_eslint@8.57.1/node_modules/miniprogram-ci/dist/utils/report.js:1:1490) at async /root/deploy/miniapp-health/upload.js:54:5 [info] upload by COS failed, fallback to http way [info] request url: https://servicewechat.com/wxa/ci/upload?codeprotect=0&type=miniProgram&appid=wxb6c5c84f1d586595&version=1.0.0&desc=%E8%87%AA%E5%8A%A8%E6%9E%84%E5%BB%BA%E4%B8%8A%E4%BC%A0%20-%20app3_jzgl&robot=1&debugLaunchInfo=%7B%22scene%22%3A1011%7D [error] 20003 Error: {"errCode":-1,"errMsg":"inner get attr fail with errcode: 41001, errmsg: access_token missing"} [10:59:04 AM] app3_jzgl 上传失败: Error: {"errCode":-1,"errMsg":"inner get attr fail with errcode: 41001, errmsg: access_token missing"} ]
03-172.1.31 试试
miniprogram-ci问题?Error: Cannot find module '/var/lib/jenkins/.nvm/versions/node/v16.14.0/lib/node_modules/miniprogram-ci/node_modules/less/lib/less' at createEsmNotFoundErr (node:internal/modules/cjs/loader:960:15) at finalizeEsmResolution (node:internal/modules/cjs/loader:953:15) at resolveExports (node:internal/modules/cjs/loader:482:14) at Function.Module._findPath (node:internal/modules/cjs/loader:522:31) at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27) at Function.Module._load (node:internal/modules/cjs/loader:778:27) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18) at Object.<anonymous> (/var/lib/jenkins/.nvm/versions/node/v16.14.0/lib/node_modules/miniprogram-ci/dist/common/code-analyse/index.js:1:187058) at Module._compile (node:internal/modules/cjs/loader:1103:14) { code: 'MODULE_NOT_FOUND', path: '/var/lib/jenkins/.nvm/versions/node/v16.14.0/lib/node_modules/miniprogram-ci/node_modules/less/package.json' } 没有任何改动的情况下,昨天还是能通过miniprogram-ci上传代码的,今天死活都不行。是不是官方又在偷偷摸摸改东西了?
03-122.1.31 试试
miniprogram-ci执行报less相关错误?在执行ci脚本时,发现如下报错: node:internal/modules/cjs/loader:646 throw e; ^ Error: Cannot find module '/Users/xxx/project/node_modules/less/lib/less' at createEsmNotFoundErr (node:internal/modules/cjs/loader:1261:15) at finalizeEsmResolution (node:internal/modules/cjs/loader:1250:15) at resolveExports (node:internal/modules/cjs/loader:639:14) at Function._findPath (node:internal/modules/cjs/loader:728:31) at Function._resolveFilename (node:internal/modules/cjs/loader:1211:27) at Function._load (node:internal/modules/cjs/loader:1055:27) at TracingChannel.traceSync (node:diagnostics_channel:322:14) at wrapModuleLoad (node:internal/modules/cjs/loader:220:24) at Module.require (node:internal/modules/cjs/loader:1311:12) at require (node:internal/modules/helpers:136:16) { code: 'MODULE_NOT_FOUND', path: '/Users/xxx/project/node_modules/less' } 排查后发现,官方的miniprogram-ci依赖less的版本为"^4.1.2",即执行npm i时会默认下载 >=4.1.2 和 <5.0.0的最新版本,据查,less于3月11日北京时间5点更新了4.6.2(https://www.npmjs.com/package/less/v/4.6.2),该版本会引起以上报错。建议官方将less版本号改为"~4.1.2"
03-122.1.31 试试
miniprogram-ci 报找不到less[代码][executionStep begins at 2026-03-11 10:12:38][代码] [代码]#############################################################[代码] [代码]# name : Command[代码] [代码]# version : v1.0.74[代码] [代码]# description : Execute Shell Commands[代码] [代码]# help url : https://atomgit.com/flow-step/Command.git[代码] [代码]# build id : 6e1fd571-024d-4d61-9ea3-b8edd720c16a[代码] [代码]#############################################################[代码] [代码]2026-03-11 10:12:38 [INFO] Set LANG=zh_CN.UTF-8 based on PIPELINE_LOCALE=zh_CN[代码] [代码]2026-03-11 10:12:38 [INFO] Given shell executor: [] useGivenShell: [false][代码] [代码]2026-03-11 10:12:38 [INFO] Invoke script with shell [bash][代码] [代码]2026-03-11 10:12:38 [INFO] ------ User Command Content ------[代码] [代码]npm config set registry https://registry.npmmirror.com[代码] [代码]mkdir mpUpload[代码] [代码]mv apps/ttxx-app/build/mp/* ./mpUpload[代码] [代码]mv apps/ttxx-app/dist ./mpUpload/[代码] [代码]cd mpUpload[代码] [代码]npx miniprogram-ci@2.1.19 \[代码] [代码] upload \[代码] [代码] --pp ./dist/build/mp-weixin/ \[代码] [代码] --pkp ./private.wx1651d24039b2b512.key \[代码] [代码] --appid wx1651d24039b2b512 \[代码] [代码] --uv ${versionName}.${BUILD_NUMBER} \[代码] [代码] -r 2 \[代码] [代码] --ud "测试环境"[代码] [代码]2026-03-11 10:12:38 [INFO] ------ User Command Content ------[代码] [代码]2026-03-11 10:12:39 [INFO] npm warn exec The following package was not found and will be installed: miniprogram-ci@2.1.19[代码] [代码]2026-03-11 10:12:53 [INFO] npm warn deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility[代码] [代码]2026-03-11 10:12:53 [INFO] npm warn deprecated har-validator@5.1.5: this library is no longer supported[代码] [代码]2026-03-11 10:12:53 [INFO] npm warn deprecated readdir-scoped-modules@1.1.0: This functionality has been moved to @npmcli/fs[代码] [代码]2026-03-11 10:12:53 [INFO] npm warn deprecated debuglog@1.0.1: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.[代码] [代码]2026-03-11 10:12:53 [INFO] npm warn deprecated read-package-json@2.1.2: This package is no longer supported. Please use @npmcli/package-json instead.[代码] [代码]2026-03-11 10:12:54 [INFO] npm warn deprecated phin@2.9.3: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.[代码] [代码]2026-03-11 10:12:54 [INFO] npm warn deprecated lodash.template@3.6.2: This package is deprecated. Use https://socket.dev/npm/package/eta instead.[代码] [代码]2026-03-11 10:12:54 [INFO] npm warn deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5[代码] [代码]2026-03-11 10:12:54 [INFO] npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.[代码] [代码]2026-03-11 10:12:54 [INFO] npm warn deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead[代码] [代码]2026-03-11 10:12:54 [INFO] npm warn deprecated @humanwhocodes/config-array@0.13.0: Use @eslint/config-array instead[代码] [代码]2026-03-11 10:12:55 [INFO] npm warn deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.[代码] [代码]2026-03-11 10:12:55 [INFO] npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported[代码] [代码]2026-03-11 10:12:55 [INFO] npm warn deprecated read-package-tree@5.2.1: The functionality that this package provided is now in @npmcli/arborist[代码] [代码]2026-03-11 10:12:55 [INFO] npm warn deprecated querystring@0.2.1: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.[代码] [代码]2026-03-11 10:12:56 [INFO] npm warn deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142[代码] [代码]2026-03-11 10:12:56 [INFO] npm warn deprecated glob@7.1.2: Glob versions prior to v9 are no longer supported[代码] [代码]2026-03-11 10:12:56 [INFO] npm warn deprecated babel-preset-es2015@6.24.1: 🙌 Thanks for using Babel: we recommend using babel-preset-env now: please read https://babeljs.io/env to update![代码] [代码]2026-03-11 10:12:56 [INFO] npm warn deprecated @babel/plugin-proposal-unicode-property-regex@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-unicode-property-regex instead.[代码] [代码]2026-03-11 10:12:56 [INFO] npm warn deprecated @babel/plugin-proposal-optional-chaining@7.21.0: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.[代码] [代码]2026-03-11 10:12:56 [INFO] npm warn deprecated @babel/plugin-proposal-private-property-in-object@7.21.0: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-property-in-object instead.[代码] [代码]2026-03-11 10:12:56 [INFO] npm warn deprecated @babel/plugin-proposal-private-methods@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-methods instead.[代码] [代码]2026-03-11 10:12:56 [INFO] npm warn deprecated @babel/plugin-proposal-optional-catch-binding@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-catch-binding instead.[代码] [代码]2026-03-11 10:12:56 [INFO] npm warn deprecated @babel/plugin-proposal-nullish-coalescing-operator@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.[代码] [代码]2026-03-11 10:12:56 [INFO] npm warn deprecated @babel/plugin-proposal-logical-assignment-operators@7.20.7: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-logical-assignment-operators instead.[代码] [代码]2026-03-11 10:12:56 [INFO] npm warn deprecated @babel/plugin-proposal-numeric-separator@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-numeric-separator instead.[代码] [代码]2026-03-11 10:12:56 [INFO] npm warn deprecated @babel/plugin-proposal-json-strings@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-json-strings instead.[代码] [代码]2026-03-11 10:12:56 [INFO] npm warn deprecated @babel/plugin-proposal-dynamic-import@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-dynamic-import instead.[代码] [代码]2026-03-11 10:12:56 [INFO] npm warn deprecated @babel/plugin-proposal-object-rest-spread@7.20.7: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.[代码] [代码]2026-03-11 10:12:56 [INFO] npm warn deprecated @babel/plugin-proposal-async-generator-functions@7.20.7: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-async-generator-functions instead.[代码] [代码]2026-03-11 10:12:56 [INFO] npm warn deprecated @babel/plugin-proposal-class-static-block@7.21.0: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-static-block instead.[代码] [代码]2026-03-11 10:12:56 [INFO] npm warn deprecated @babel/plugin-proposal-class-properties@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.[代码] [代码]2026-03-11 10:12:56 [INFO] npm warn deprecated @babel/plugin-proposal-export-namespace-from@7.18.9: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-export-namespace-from instead.[代码] [代码]2026-03-11 10:12:56 [INFO] npm warn deprecated phin@3.7.1: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.[代码] [代码]2026-03-11 10:12:57 [INFO] npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported[代码] [代码]2026-03-11 10:12:57 [INFO] npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported[代码] [代码]2026-03-11 10:12:57 [INFO] npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported[代码] [代码]2026-03-11 10:12:58 [INFO] npm warn deprecated eslint@8.57.1: This version is no longer supported. Please see https://eslint.org/version-support for other options.[代码] [代码]2026-03-11 10:12:58 [INFO] npm warn deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.[代码] [代码]2026-03-11 10:13:00 [INFO] node:internal/modules/cjs/loader:597[代码] [代码]2026-03-11 10:13:00 [INFO] throw e;[代码] [代码]2026-03-11 10:13:00 [INFO] ^[代码] [代码]2026-03-11 10:13:00 [INFO] [代码] [代码]2026-03-11 10:13:00 [INFO] Error: Cannot find module '/root/.npm/_npx/555e32e3a0732cf5/node_modules/less/lib/less'[代码] [代码]2026-03-11 10:13:00 [INFO] [代码][代码] at createEsmNotFoundErr (node:internal/modules/cjs/loader:1177:15)[代码] [代码]2026-03-11 10:13:00 [INFO] [代码][代码] at finalizeEsmResolution (node:internal/modules/cjs/loader:1165:15)[代码] [代码]2026-03-11 10:13:00 [INFO] [代码][代码] at resolveExports (node:internal/modules/cjs/loader:590:14)[代码] [代码]2026-03-11 10:13:00 [INFO] [代码][代码] at Module._findPath (node:internal/modules/cjs/loader:664:31)[代码] [代码]2026-03-11 10:13:00 [INFO] [代码][代码] at Module._resolveFilename (node:internal/modules/cjs/loader:1126:27)[代码] [代码]2026-03-11 10:13:00 [INFO] [代码][代码] at Module._load (node:internal/modules/cjs/loader:981:27)[代码] [代码]2026-03-11 10:13:00 [INFO] [代码][代码] at Module.require (node:internal/modules/cjs/loader:1231:19)[代码] [代码]2026-03-11 10:13:00 [INFO] [代码][代码] at require (node:internal/modules/helpers:177:18)[代码] [代码]2026-03-11 10:13:00 [INFO] at Object.<anonymous> (/root/.npm/_npx/555e32e3a0732cf5/node_modules/miniprogram-ci/dist/common/code-analyse/index.js:1:187058)[代码] [代码]2026-03-11 10:13:00 [INFO] [代码][代码] at Module._compile (node:internal/modules/cjs/loader:1364:14)[代码][代码] {[代码] [代码]2026-03-11 10:13:00 [INFO] code: [代码][代码]'MODULE_NOT_FOUND'[代码][代码],[代码] [代码]2026-03-11 10:13:00 [INFO] path: [代码][代码]'/root/.npm/_npx/555e32e3a0732cf5/node_modules/less/package.json'[代码] [代码]2026-03-11 10:13:00 [INFO] }[代码] [代码]2026-03-11 10:13:00 [INFO] [代码] [代码]2026-03-11 10:13:00 [INFO] Node.js v18.20.8[代码] [代码]2026-03-11 10:13:00 [ERROR] run user script failed, exit code: 1[代码] [代码]查看了一下less包是存在的,但是less版本是4.6.2,今天刚发布的。可能需要指定到4.5.1版本[代码]
03-122.1.31 试试
miniprogram-ci MODULE_NOT_FOUND报错?[图片] 排查是less最新更新的4.6.2版本导致的,你们没有锁版本吗
03-12