[ app.json 文件内容错误] app.json: 在项目根目录未找到 app.json (env: Windows,mp,1.06.2301160; lib: 2.19.4)
时间: 2024-06-13 16:06:17 浏览: 213
根据提供的引用内容,这个问题的解决方法有两种:
1. 配置project.config.json文件路径,在project.config.json文件中添加以下代码:
```json
{
"miniprogramRoot": "./",
"projectname": "your_project_name",
"description": "project description",
"appid": "",
"setting": {
"urlCheck": true,
"es6": true,
"postcss": true,
"minified": true,
"newFeature": true
},
"compileType": "miniprogram",
"condition": {
"search": {
"current": -1,
"list": []
},
"conversation": {
"current": -1,
"list": []
},
"plugin": {
"current": -1,
"list": []
},
"game": {
"currentL": -1,
"list": []
}
},
"packOptions": {
"ignore": []
},
"scripts": {},
"appid": "your_appid",
"projectConfig": {
"projectname": "your_project_name",
"appid": "your_appid",
"libVersion": "2.19.4",
"simulatorType": "wechat",
"simulatorPluginLibVersion": {},
"condition": {
"search": {
"current": -1,
"list": []
},
"conversation": {
"current": -1,
"list": []
},
"plugin": {
"current": -1, "list": []
},
"game": {
"currentL": -1,
"list": []
}
}
}
}
```
2. 关闭项目,重新打开,直接选择子文件夹下包含有app.json的文件打开,例如上面提到的myFirst文件夹,打开后就不会报错了。
阅读全文