miniprogram-ci preview 上传代码报错。
报错1:
unknown file: path.requeueComputedKeyAndDecorators is not a function
at enhance (/usr/local/lib/node_modules/miniprogram-ci/dist/modules/corecompiler/summer/plugins/enhance.js:1:1579)
at doTransform (/usr/local/lib/node_modules/miniprogram-ci/dist/modules/corecompiler/summer/plugins/enhance.js:1:1827)
at Object.runSummerPluginHook (/usr/local/lib/node_modules/miniprogram-ci/dist/modules/corecompiler/summer/worker.js:1:1225) {
code: 10045,
path: 'app/components/block-item/index.js'
报错2:
{
type: 'SummerError',
message: 'TypeError: _traverse.visitors.environmentVisitor is not a function',
stack: 'TypeError: _traverse.visitors.environmentVisitor is not a function\n' +
' at Object.<anonymous> (/usr/local/bin/global/5/.pnpm/node_modules/@babel/helper-replace-supers/lib/index.js:22:51)\n' +
' at Module._compile (node:internal/modules/cjs/loader:1159:14)\n' +
' at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)\n' +
code: 10046,
path: 'miniprogram/api/account.ts',
plugin: 'summer-typescript',
hook: 'load'
}
测试了一下npm包的版本均有问题。
miniprogram-ci@2.0.6
miniprogram-ci@2.0.4
miniprogram-ci@1.9.16
miniprogram-ci@1.9.8
配置如下:
miniprogram-ci preview \
-v false \
--pp ./dist \
--pkp ./private-key.txt \
--enable-es6 true \
--enable-es7 true \
--enable-minify true \
--enable-allowIgnoreUnusedFiles true \
--enable-autoprefixwxss true \
--uv ***** \
--ud ***** \
--appid ***** \
-r 1
上周五还能用,今天周一我们公司所有的小程序CI全部异常。

babel的node_modules依赖发版导致的。
2.0.8
1.9.17
锁定了babel的子版本。PS:清除本地的node_modules和lock文件
"devDependencies": {"@commitlint/cli": "^18.2.0","@commitlint/config-conventional": "^18.1.0","@typescript-eslint/eslint-plugin": "^6.9.1","@typescript-eslint/parser": "^6.9.1","cz-customizable": "^7.0.0","eslint": "^8.52.0","eslint-config-prettier": "^8.5.0","eslint-plugin-prettier": "^4.2.1","husky": "^8.0.3","lint-staged": "^15.0.2","miniprogram-api-typings": "^3.12.0","postcss": "^8.4.21","prettier": "2.8.8","stylelint": "^15.11.0","stylelint-config-prettier-scss": "^1.0.0","stylelint-config-standard-scss": "^11.0.0","typescript": "^4.8.4"},问题+1
同样问题
同样遇到了这个问题,先使用微信开发工具临时上传的
转述微信官方支持同学的回复:试试 1.9.17 版本的 miniprogram-ci
看我发的https://developers.weixin.qq.com/community/develop/article/doc/000822d3db4d4051ec147ab876e413
有通用的解决方案了嘛
同样问题,上周五15点还能用,周一就不行了
同样问题 +1
遇到了一样的问题