Dexie.js: Dexie.Observable on existing database

Created on 5 Dec 2016  路  2Comments  路  Source: dfahlander/Dexie.js

Hello,

I just discovered dexie.observable plugin but I can't make it work.
If I add

import 'dexie-observable';

the following error occurs

Unhandled rejection: NotFoundError: Failed to execute 'transaction' on 'IDBDatabase': One of the specified object stores was not found.

It seems (with some debugging) that the error means that "_changes" does not exist, I probably miss something but I don't know what exactly.
(I use dexie 2.0.0-beta.6 and dexie-observable 0.2.1)

Most helpful comment

You'd need to update the version of your schema to allow the addons to add its tables and indexes. This is not described anywhere. Will update wiki. Let's say your current version is 3. Then you should add a new line:

db.version(4).stores({});

No new tables added. Just to make it possible for the addons to add their tables.

All 2 comments

You'd need to update the version of your schema to allow the addons to add its tables and indexes. This is not described anywhere. Will update wiki. Let's say your current version is 3. Then you should add a new line:

db.version(4).stores({});

No new tables added. Just to make it possible for the addons to add their tables.

Ok nice, it seems to work :). Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xavibonell picture xavibonell  路  4Comments

dmlzj picture dmlzj  路  3Comments

Script47 picture Script47  路  3Comments

devolarium picture devolarium  路  3Comments

sortegamartin picture sortegamartin  路  3Comments