微信小程序errCode: -502005 database Collection `xxx` is not exist

微信小程序在上传并部署到云端依赖(不上传node_modules)之后报错如下:

微信小程序errCode: -502005 database Collection `xxx` is not exist_第1张图片

注意:这里微信小程序找问题,需要从errMsg的最后一条入手,看“Collection `broadcast` is not exists”,知道是‘broadcast’有问题,在看前面一句‘database collection not exists ’,知道是database的问题。原来是基础概念不清楚,这里‘collection’就是云端数据库终中的集合的概念。在云开发控制台的数据库中添加“broadcast”这个集合ji即可。

你可能感兴趣的:(微信小程序,微信小程序-基础,微信小程序)