rxdb 中的错误:无法读取未定义的属性(读取“键”)?

问题描述 投票:0回答:0

enter image description here

rx-schema-helper.ts:104 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'key')
    at getPrimaryFieldOfPrimaryKey (rx-schema-helper.ts:104:63)
    at fillWithDefaultSettings (rx-schema-helper.ts:163:33)
    at createRxSchema (rx-schema.ts:153:25)
    at rx-database.ts:280:28
    at Array.forEach (<anonymous>)
    at RxDatabaseBase2.addCollections (rx-database.ts:276:44)
    at index.ts:24:20
    at Array.map (<anonymous>)
    at creatDataBase (index.ts:22:29)

接收架构: enter image description here

为什么?

当我更改本地数据时,使用 rxdb 将数据更新到 indexeddb 中。 或更改属性。

indexeddb rxdb
© www.soinside.com 2019 - 2024. All rights reserved.