'Next.js / Dexie: Failed to execute 'add' on 'IDBObjectStore': Evalu…he object store's key path did not yield a value
When attempting to save using Dexie i encounter the error below, this error strictly occurs in production with no errors occurring when i attempt to save data. Any help much appreciated!
the error:
"Failed to execute 'add' on 'IDBObjectStore': Evaluating the object store's key path did not yield a value.
DataError: Failed to execute 'add' on 'IDBObjectStore': Evaluating the object store's key path did not yield a value."
db setup
db.version(1).stores({
people: '++id, name',
});
Add
const newId = await db.people.add({
name: userName,
blocks,
lists,
});
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
