请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

Error:未找到 project.config.json 中的qcloudRoot字段。错误:10080

正在回答 回答被采纳积分+3

2回答

慕瓜8449030 2018-05-22 09:52:59

你好 在project.config.json里加一行即可

  "qcloudRoot": "./server/",


给你看下我全部的配置


{

  "description": "项目配置文件。",

  "setting": {

    "urlCheck": false,

    "es6": false,

    "postcss": true,

    "minified": true,

    "newFeature": true

  },

  "miniprogramRoot": "./dist/",

  "qcloudRoot": "./server/",

  "compileType": "miniprogram",

  "appid": "appid",

  "projectname": "snail-books",

  "condition": {

    "search": {

      "current": -1,

      "list": []

    },

    "conversation": {

      "current": -1,

      "list": []

    },

    "game": {

      "currentL": -1,

      "list": []

    },

    "miniprogram": {

      "current": -1,

      "list": []

    }

  }

}


0 回复 有任何疑惑可以回复我~
  • 提问者 慕九州6509469 #1
    加了,还是这个问题,开发环境第五步跑不过去
    回复 有任何疑惑可以回复我~ 2018-05-22 10:15:02
  • 提问者 慕九州6509469 #2
    怎么操作啊
    回复 有任何疑惑可以回复我~ 2018-05-22 12:09:18
提问者 慕九州6509469 2018-05-21 16:03:41

有没有人回答下这个问题

0 回复 有任何疑惑可以回复我~
  • 你的配置法我一下 除了这个报错 还有别的报错吗?
    回复 有任何疑惑可以回复我~ 2018-05-22 13:26:07
  • 或者你现在的代码push到github上,法我地址 我帮你弄
    回复 有任何疑惑可以回复我~ 2018-05-22 13:26:35
  • 提问者 慕九州6509469 回复 慕瓜8449030 #3
    project.config.json文件下:
    {
    	"description": "项目配置文件。",
    	"setting": {
    		"urlCheck": false,
    		"es6": false,
    		"postcss": true,
    		"minified": true,
    		"newFeature": true
    	},
    	"miniprogramRoot": "./dist/",
    	"compileType": "miniprogram",
    	"qcloudRoot":"./server/",
    	"appid": "wx22cc1020646704a6",
    	"projectname": "my-weixin",
    	"condition": {
    		"search": {
    			"current": -1,
    			"list": []
    		},
    		"conversation": {
    			"current": -1,
    			"list": []
    		},
    		"game": {
    			"currentL": -1,
    			"list": []
    		},
    		"miniprogram": {
    			"current": -1,
    			"list": []
    		}
    	}
    }
    回复 有任何疑惑可以回复我~ 2018-05-22 14:06:47
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信