在 fake-IndexedDB 下的 DataCloneError
作者: arolson101创建于 2018年1月22日更新于 2026年8月6日
I'm running under node (for unit testing) with fake-indexeddb and dexie-observable I get a 'DataCloneError' ("The data being stored could not be cloned by the internal structured cloning algorithm.") because in startObserving (Dexie.Observable.js:255 -- db._syncNodes.add(mySyncNode.node)) the object being saved has a 'save' method and fails isPlainObject in realistic-structured-clone:
内容来源: dexie/Dexie.js