# huawei-agc-wechart-clouddb-demo **Repository Path**: cndream/huawei-agc-wechart-clouddb-demo ## Basic Information - **Project Name**: huawei-agc-wechart-clouddb-demo - **Description**: 华为 云数据库 微信小程序 Demo - **Primary Language**: JavaScript - **License**: WTFPL - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-11-14 - **Last Updated**: 2022-11-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### 1. 在agc 云数据库 控制台导入schema ```sh schema\BookInfo.json ``` ### 2. 配置 agConnectConfig ```sh miniprogram\config\agConnectConfig.js ``` ### 3. 构建 微信小程序 npm ```bash cd miniprogram cnpm i --save ``` ### 4. 微信开发者工具,菜单 工具 》构建 npm ### 5. 编译后首页显示正常 ### 6. 点登录后报错 ,点新增数据也会拨错 ```sh index-db.js? [sm]:68 e {message: "object type does not exist.", code: 16}(env: Windows,mp,1.06.2210141; lib: 2.11.3) _callee3$ @ index-db.js? [sm]:68 f @ WASubContext.js?t=wechat&s=1668438443686&v=2.11.3:2 u._invoke @ WASubContext.js?t=wechat&s=1668438443686&v=2.11.3:2 e. @ WASubContext.js?t=wechat&s=1668438443686&v=2.11.3:2 asyncGeneratorStep @ asyncToGenerator.js:1 i @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 login @ index-db.js? [sm]:43 r.safeCallback @ WASubContext.js?t=wechat&s=1668438443686&v=2.11.3:2 (anonymous) @ WASubContext.js?t=wechat&s=1668438443686&v=2.11.3:2 s @ WASubContext.js?t=wechat&s=1668438443686&v=2.11.3:2 (anonymous) @ WASubContext.js?t=wechat&s=1668438443686&v=2.11.3:2 r @ WASubContext.js?t=wechat&s=1668438443686&v=2.11.3:2 (anonymous) @ WASubContext.js?t=wechat&s=1668438443686&v=2.11.3:2 (anonymous) @ WASubContext.js?t=wechat&s=1668438443686&v=2.11.3:2 (anonymous) @ WAServiceMainContext.js:2 a @ VM9 asdebug.js:10 c @ VM9 asdebug.js:10 (anonymous) @ VM9 asdebug.js:1 f @ VM9 asdebug.js:1 g @ VM9 asdebug.js:1 (anonymous) @ VM9 asdebug.js:1 _ws.onmessage @ VM9 asdebug.js:1 insert.js? [sm]:63 6 insert.js? [sm]:119 {message: "The object type is not loaded yet."}(env: Windows,mp,1.06.2210141; lib: 2.11.3) ```