上传过程中会报以下错误。 但是无法定位到是哪一个文件在报错? 如果使用微信开发者工具进行打包上传就可以正常上传。
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'
}
ci 版本是什么?有没代码片段
最后我使用 命令行的 miniprogram-ci 就可以正常上传。
project,
version: packageInfo.version,
desc: `自动上传 ${name} 更新说明:${descRes} 时间:${new Date().toLocaleString()}`,
setting: {
es6: true,
minify: true,
autoPrefixWXSS: true,
},
onProgressUpdate: (info) => {
console.log("上传中:", info.message);
},
});