时间:2019-05-04 来源:小程序工厂
我尝试的最新解决方案,在开发者工具里面删除不能编译的,报错提示缺少 app.json 文件的项目,然后重新导入项目就好了!!!我怀疑是旧的开发者工具建立的项目和现在新的开发者工具建议的项目,项目信息有冲突,删除旧的项目列表,重新导入就好了!!!
好人一生平安
111
111
111
非常感谢
试下删掉 project.config.json 文件(如果有),项目详情切换一下 ES6 转 ES5,看看能否成功,以及截图看下生成的新 project.config.json 文件内容呢。
{
"description": "项目配置文件",
"packOptions": {
"ignore": []
},
"setting": {
"urlCheck": false,
"es6": false,
"postcss": false,
"minified": false,
"newFeature": true,
"nodeModules": false
},
"compileType": "miniprogram",
"libVersion": "2.3.0",
"appid": "wx1f68e518af7c502a",
"projectname": "wechat-mini-dev",
"svr": "/",
"client": "/",
"qcloudRoot": "/",
"miniprogramRoot": "/",
"cloudfunctionRoot": "/",
"jsserverRoot": "/",
"pluginRoot": "/",
"debugOptions": {
"hidedInDevtools": []
},
"scripts": {},
"condition": {
"search": {
"current": -1,
"list": []
},
"conversation": {
"current": -1,
"list": []
},
"plugin": {
"current": -1,
"list": []
},
"game": {
"list": []
},
"miniprogram": {
"current": -1,
"list": [
{
"id": 0,
"name": "Affiliate Test HappyPath",
"pathName": "pages/index",
"query": "utmSource=mp_aff&utmCampaign=817&utmMedium=article&utmContent=pdp&utmTerm=happypath",
"scene": "1011"
},
{
"id": 1,
"name": "Affiliate Test OnlyPDP",
"pathName": "pages/detail",
"query": "productId=13209967&utmSource=mp_aff&utmCampaign=817&utmMedium=article&utmContent=pdp&utmTerm=onlylandpdp",
"scene": "1011"
},
{
"id": 2,
"name": "Url Test",
"pathName": "pages/index",
"query": "camref=camref:1011l499B&utmCampaign=PHCN&utmMedium=affiliate&utmSource=Naico",
"scene": "1011"
},
{
"id": 3,
"name": "Url Test",
"pathName": "pages/detail",
"query": "productId=12985450",
"scene": "1011"
},
{
"id": -1,
"name": "Order Confirm",
"pathName": "pages/confirm",
"query": "id=30431292",
"scene": "1011"
},
{
"id": -1,
"name": "Login Entrance",
"pathName": "pages/user/login",
"query": "",
"scene": "1011"
},
{
"id": 6,
"name": "Scan QR Code",
"pathName": "pages/index",
"query": "",
"scene": "1011"
}
]
}
}
}
这是新生成的文件内容。还是无法上传预览,一样的错误。
全部删掉