收藏
回答

通过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'

}

回答关注问题邀请回答
收藏

1 个回答

  • 张晨  🔆
    张晨 🔆
    1天前

    ci 版本是什么?有没代码片段

    1天前
    有用
    回复 2
    • CodeCook
      CodeCook
      1天前
      我尝试了 npm -  miniprogram-ci: 2.1.26 , 2.1.29 和 2.1.19,  node: 22, 20, 18.  都有报错的情况
      最后我使用 命令行的 miniprogram-ci  就可以正常上传。
      1天前
      回复
    • CodeCook
      CodeCook
      1天前
      const uploadResult = await ci.upload({
            project,
            version: packageInfo.version,
            desc: `自动上传 ${name} 更新说明:${descRes} 时间:${new Date().toLocaleString()}`,
            setting: {
              es6: true,
              minify: true,
              autoPrefixWXSS: true,
            },
            onProgressUpdate: (info) => {
              console.log("上传中:", info.message);
            },
          });
      1天前
      回复
登录 后发表内容