miniprogram-ci 执行预览命令时 报错?
发布于 6 年前 作者 caoguiying 14816 次浏览 来自 官方Issues

const ci = require(‘miniprogram-ci’);

(async () => {

  const project = new ci.Project({

    appid: ‘xxxx’,

    type: ‘miniProgram’,

    projectPath: ‘xxxx’,

    privateKeyPath: ‘xxx’,

    ignores: [‘node_modules/**/*’],

  })

  await ci.upload({

    project,

    version: ‘1.2.1’,

    desc: ‘hello’,

    setting: {

      es6: true,

    },

    onProgressUpdate: console.log,

  })

})()

[“tabBar”][“list”][0][“iconPath”]: “static/image/home.png” not found

去掉tabBar中的图片就不会报错,并且 在微信开发者工具中上传和预览都不会有这种问题

2 回复

projectPath设置多了吗?

检查下文件路径是否对的,文件是否存在呢?

我用CI上传没问题。官方文档里的写法

感谢大佬的纠正, projectPath一定要配置对

回到顶部