You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use the new 'indexeddb' adapter in PouchDB v7.3.0 working in an angular application running in Chrome.
I import it using this code:
import PouchIndexedDb from 'pouchdb-adapter-indexeddb';
PouchDB.plugin(PouchIndexedDb)
I initialize databases like this:
var db = new PouchDB('tangerine-variables', {"adapter": "indexeddb"})
I get the following error in the console after my application tries to store data to pouch. Note, PouchDB.adapters is printed out in the console as well and shows 'indexeddb' is the known adapter.
I think it might have something to do with the prefix option. I added {"adapter": "indexeddb", "prefix": "tangerine"} to my pouchdb options, but now I see many databases with both the 'pouch' and '_pouch_tangerine' prefixes.
I now get a 'missing' error.
Are there other settings either in pouchdb or Chrome that I need to set for this to work?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I am trying to use the new 'indexeddb' adapter in PouchDB v7.3.0 working in an angular application running in Chrome.
I import it using this code:
I initialize databases like this:
I get the following error in the console after my application tries to store data to pouch. Note, PouchDB.adapters is printed out in the console as well and shows 'indexeddb' is the known adapter.
I think it might have something to do with the
prefix
option. I added{"adapter": "indexeddb", "prefix": "tangerine"}
to my pouchdb options, but now I see many databases with both the 'pouch' and '_pouch_tangerine' prefixes.I now get a 'missing' error.
Are there other settings either in pouchdb or Chrome that I need to set for this to work?
Beta Was this translation helpful? Give feedback.
All reactions