在开发者工具(1.05.2107221)中可以正常上传代码,但是在win10系统中使用就会报错
下面是我的编译代码
const ci = require('miniprogram-ci')
class Build {
project = undefined
constructor () {
const project = this.createProject()
this.upload(project)
.then((uploadResult) => {
console.log(uploadResult)
})
.catch(e => {
console.error(e)
})
}
createProject () {
return new ci.Project({
appid: 'xxxxxxxxxxxxxx',
type: 'miniProgram',
projectPath: 'D:/dikong_park_applet_wechat',
privateKeyPath: 'D:/dikong_park_applet_wechat/private.wx2xxxxxxx.key',
ignores: ['node_modules/**/*'],
})
}
upload (project) {
return ci.upload({
project,
version: '1.0.5',
desc: 'v8-1.0.5',
setting: {
"urlCheck": true,
"es6": true,
"enhance": true,
"postcss": true,
},
onProgressUpdate: console.log,
})
return uploadResult
}
}
new Build()
启用 setting.es7 = true