I had the same problem, but now i can’t inject the storage, i always get:
TypeError: this._db.config is not a function
at new Storage (storage.js:38)
at NgModuleInjector.get (AppModule.ngfactory.js:343)
at NgModuleInjector.AppModuleInjector.getInternal (AppModule.ngfactory.js:509)
at NgModuleInjector.get (ng_module_factory.js:94)
at ElementInjector.get (element_injector.js:29)
at DebugAppView.View_MyApp_Host0.createInternal (MyApp_Host.ngfactory.js:16)
at DebugAppView.AppView.create (view.js:125)
at DebugAppView.create (view.js:337)
at ComponentFactory.create (component_factory.js:153)
at ViewContainerRef.createComponent (view_container_ref.js:114)
Hm, now i have the next issue. When i call the set method of storage, i get the error:
error_handler.js:45
EXCEPTION: Uncaught (in promise): DataCloneError: Failed to execute ‘put’ on ‘IDBObjectStore’: An object could not be cloned.
Do you know what the problem could be?
Edit: Okay, i found the reason for this error: It’s not possible to put JSON-Data in the DB. I think i should parse it to a string or something like this. Not sure for now.