收藏
回答

开发工具上传时 找不到 project.config.json?

偶现,出现后有时候重启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
最后一次编辑于  2022-02-21
回答关注问题邀请回答
收藏

1 个回答

  • Demons
    Demons
    2021-12-28

    你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号

    2021-12-28
    有用
    回复 2
    • 黯淡
      黯淡
      2022-01-03
      开发工具版本号:1.05.212301
      复现方式:多个小程序批量上传,通过修改 project.config.json 的 appid 进行切换小程序。切换后使用命令行v2 cli 上传构建结果时,出现如上报错
      2022-01-03
      回复
    • 黯淡
      黯淡
      2022-01-03
      命令出错后,开发工具如下报错
      2022-01-03
      回复
登录 后发表内容