偶现,出现后有时候重启IDE就可以了。有时候需要重新打包,希望可以帮忙看下
报错信息中 project.config.json 前面的数字不固定,出现过不同的
报错时,打包文件夹下的 project.config.json 确认存在
报错信息如下:
Error: ENOENT: no such file or directory, open '/Users/xxxxxx/Desktop/work/miniapp-county/build/wechat-miniprogram/.!44096!project.config.json'
02.21 补充
好像是临时配置文件的 id 对应不上了
开发工具版本 1.05.2201240
// 构建结果 project.config.json 及临时文件变更记录
event: rename, filename: .!2094!project.config.json
event: rename, filename: project.config.json
event: rename, filename: project.config.json
event: rename, filename: project.config.json
event: rename, filename: .!2109!project.config.json
event: rename, filename: .!2109!project.config.json
event: rename, filename: project.config.json
event: rename, filename: project.config.json
event: rename, filename: project.config.json
event: rename, filename: .!2120!project.config.json
event: rename, filename: project.config.json
event: rename, filename: project.config.json
event: rename, filename: project.config.json
// 上传记录
app1 上传结果 [error] {
code: 10,
message: "Error: 错误 Error: ENOENT: no such file or directory, open '/Users/x/Desktop/x/x/build/wechat-miniprogram/.!2028!project.config.json'\n"
}
- initialize
✔ IDE server has started, listening on http://127.0.0.1:14580
- preparing
- Fetching AppID (x) permissions
✔ Using AppID: x
- Upload
✖ compilejs
app2 上传结果 [error] {
code: 10,
message: "Error: 错误 Error: ENOENT: no such file or directory, open '/Users/x/Desktop/x/x/build/wechat-miniprogram/.!2028!project.config.json'\n"
}
- initialize
✔ IDE server has started, listening on http://127.0.0.1:14580
- preparing
- Fetching AppID (x) permissions
✔ Using AppID: x
- Upload
✖ compilejs
app3 上传结果 [error] {
code: 10,
message: "Error: 错误 Error: ENOENT: no such file or directory, open '/Users/x/Desktop/x/x/build/wechat-miniprogram/.!2028!project.config.json'\n"
}
- initialize
✔ IDE server has started, listening on http://127.0.0.1:14580
- preparing
- Fetching AppID (x) permissions
✔ Using AppID: x
- Upload
✖ compilejs
你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号
复现方式:多个小程序批量上传,通过修改 project.config.json 的 appid 进行切换小程序。切换后使用命令行v2 cli 上传构建结果时,出现如上报错