VM60386:1 thirdScriptError
sdk uncaught third Error
errCode: -1 | errMsg: Cloud API isn't enabled, please call wx.cloud.init first
请先调用 wx.cloud.init() 完成初始化后再调用其他云 API。init 方法可传入一个对象用于设置默认配置,详见文档。
Error: errCode: -1 | errMsg: Cloud API isn't enabled, please call wx.cloud.init first
请先调用 wx.cloud.init() 完成初始化后再调用其他云 API。init 方法可传入一个对象用于设置默认配置,详见文档。
at new u (WAService.js:1:381390)
at Object.exportAPI.(anonymous function) [as database] (WAService.js:1:250410)
at http://127.0.0.1:17887/appservice/pages/cloud/cloud.js:4:19
at require (WAService.js:1:1297709)
at <anonymous>:17:7
at HTMLScriptElement.scriptLoaded (http://127.0.0.1:17887/appservice/appservice?t=1564051892557:1131:21)
at HTMLScriptElement.script.onload (http://127.0.0.1:17887/appservice/appservice?t=1564051892557:1143:20)
检查下app.js文件:
在云开发控制台中查看云环境id,然后在app.js当中配置云环境id: