const ci = require("miniprogram-ci");
(async () => {
const project = new ci.Project({
appid: "wx5daa3a12*****",
type: "miniProgram",
projectPath: "/path/weapp",
privateKeyPath: "./private.wx5daa3a12*****.key",
ignores: ["node_modules/**/*"],
});
await ci.getDevSourceMap({
project,
robot: 1,
sourceMapSavePath: "./sm.zip",
});
})();
调用getDevSourceMap 报错
TypeError: Cannot read properties of undefined (reading 'sourcemap_list')
at /path/node_modules/miniprogram-ci/dist/ci/getDevSourceMap.js:2:1396
有通过ci上传代码包?robot参数和上传时是否一致?
const ci = require("miniprogram-ci");
(async () => {
const project = new ci.Project({
appid: "wx5daa3a12*****",
type: "miniProgram",
projectPath: "/path/weapp",
privateKeyPath: "./private.wx5daa3a12*****.key",
ignores: ["node_modules/**/*"],
});
await ci.getDevSourceMap({
project,
robot: 1,
sourceMapSavePath: "./sm.zip",
});
})();