I am having some trouble to use DexieJS inside an Electron desktop application.
The chrome version that is running is 51.0.2704.63
So my question is, does Dexie.js support Electron?
Or it doesn't currently support Electron?
I installed Dexie via npm locally, the problem happens when I try to open the database, with the following error:
MissingAPIError: indexedDB API not found. If using IE10+, make sure to run your code on a server URL (not locally). If using Safari, make sure to include indexedDB polyfill.
I tried installing indexeddb and indexeddbshim through npm, tried requiring before initializing Dexie. Tried isolating my Dexie.js usage to a single file (to make sure I wasn't screwing up on different scopes and execution threads).
Thank you!
[code]
const Dexie = require ('dexie');
var db = new Dexie('DBName');
db.open().catch(function (e) {
console.error("Open failed: " + e);
});
[/code]
>> Open failed: MissingAPIError: indexedDB API not found. If using IE10+, make sure to run your code on a server URL (not locally). If using Safari, make sure to include indexedDB polyfill.