Perhaps this belongs in the Capacitor forum, but for some reason, I cannot post to it.
At any rate, I have just created a new blank Ionic 4 application, and added Capacitor. I have an upcoming app, where I will require to store quite a bit of local data (for offline), and also need to query etc, in other words, access to SQLite.
I attempted to add the SQLite native plugin. I have imported as I have before using Ionic3/Cordova, but when I run (Ionic serve) …
ERROR Error: Uncaught (in promise): TypeError: Object(...) is not a function TypeError: Object(...) is not a function at index.js:125 at Module../node_modules/@ionic-native/sqlite/index.js (index.js:188) at __webpack_require__ (bootstrap:83) at Module../src/app/home/home.module.ts (home-home-module.js:421) at __webpack_require__ (bootstrap:83) at $_lazy_route_resource lazy namespace object:18 at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:388) at Object.onInvoke (core.js:16156) at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:387) at Zone.push../node_modules/zone.js/dist/zone.js.Zone.run (zone.js:138) at resolvePromise (zone.js:814) at resolvePromise (zone.js:771) at zone.js:873 at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:421) at Object.onInvokeTask (core.js:16147) at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:420) at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:188) at drainMicroTaskQueue (zone.js:595)
Should I be able to use this plugin in Capacitor?
Thanks in advance for any help