amuste / DnetIndexedDb

Blazor Library for IndexedDB DOM API
MIT License
105 stars 28 forks source link

Could not find 'dnetindexeddbinterop.openDb' #56

Open sveins12 opened 2 years ago

sveins12 commented 2 years ago

I get this exceptions on all operations:

I have used the debugger tool in the browser and checked that windows.dnetindexeddbinterop exists. What could I have been missing?

More exception details:

'Could not find 'dnetindexeddbinterop.addItems' ('dnetindexeddbinterop' was undefined).\nError: Could not find 'dnetindexeddbinterop.addItems' ('dnetindexeddbinterop' was undefined).\n    at https://localhost:7092/_framework/blazor.webassembly.js:1:328\n    at Array.forEach (<anonymous>)\n    at a.findFunction (https://localhost:7092/_framework/blazor.webassembly.js:1:296)\n    at _ (https://localhost:7092/_framework/blazor.webassembly.js:1:2437)\n    at https://localhost:7092/_framework/blazor.webassembly.js:1:3325\n    at new Promise (<anonymous>)\n    at Object.beginInvokeJSFromDotNet (https://localhost:7092/_framework/blazor.webassembly.js:1:3306)\n    at Object.St [as invokeJSFromDotNet] (https://localhost:7092/_framework/blazor.webassembly.js:1:59938)\n    at _mono_wasm_invoke_js_blazor (https://localhost:7092/_framework/dotnet.6.0.9.rnz6vdon31.js:1:195300)\n    at wasm://wasm/00971d1a:wasm-function[219]:0x1a492'
benbaker76 commented 3 months ago

Because I'm using WebPack I had to change:

var Rx = window['rxjs'];

to

var Rx = require('rxjs');

In dnet-indexeddb.js