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)
为什么?
当我更改本地数据时,使用 rxdb 将数据更新到 indexeddb 中。 或更改属性。