I have a working Android App written in Java that’s using SQLite as storage engine. I would like to move this App to Ionic to have both major mobile platfoms supported.
I know that Ionic has a storage module that encapsulates the various databases that are available on the different platsforms, but this gives me only a key/value store.
My problem is that I would like to debug the most part of it via the Desktop App. I know that I can’t use SQLite on the Ionic Desktop App, but I could live with IndexedDB instead. My idea was to create 2 db services for SQLIte and IndexedDB and decide at runtime which one to use. But this isn’t working, since the JITCompiler always wants to compile the SQLite part.
This is the error I get:
Uncaught Error: Can’t resolve all parameters for Db: (?).
at syntaxError (vendor.js:83076)
at CompileMetadataResolver._getDependenciesMetadata (vendor.js:96413)
at CompileMetadataResolver._getTypeMetadata (vendor.js:96281)
at CompileMetadataResolver._getInjectableMetadata (vendor.js:96267)
at CompileMetadataResolver.getProviderMetadata (vendor.js:96557)
at vendor.js:96486
at Array.forEach ()
at CompileMetadataResolver._getProvidersMetadata (vendor.js:96447)
at CompileMetadataResolver.getNgModuleMetadata (vendor.js:96102)
at JitCompiler._loadModules (vendor.js:107166)
at JitCompiler.compileModuleAndComponents (vendor.js:107125)
at JitCompiler.compileModuleAsync (vendor.js:107087)
at PlatformRef.bootstrapModuleWithZone (vendor.js:5170)
at PlatformRef.bootstrapModule (vendor.js:5156)
at Object.215 (main.js:326)
at webpack_require (vendor.js:55)
at webpackJsonpCallback (vendor.js:26)
at main.js:1