PouchDB Database(.db) file not created in iOS & Android, while use ionic 4.x

Issue

I have created ionic app with latest version(4.x).For these, I have created pouchdb for access application.I used “cordova-sqlite” as adapter for pouchdb access in iOS/Android.

new PouchDB(‘employees.db’, { adapter: ‘cordova-sqlite’, location: ‘default’ } ) While i used this line database file not created in specific path. For support of pouchdb, i’ve added these plugin’s cordova-plugin-file and cordova-plugin-sqlite-2

Also get this error
ERROR Error: Uncaught (in promise): TypeError: process.nextTick is not a function TypeError: process.nextTick is not a function at home-home-module.js:26515 at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (polyfills.js:2736) at Object.onInvoke (vendor.js:51104) at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (polyfills.js:2735) at Zone.push../node_modules/zone.js/dist/zone.js.Zone.run (polyfills.js:2495) at polyfills.js:3234 at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (polyfills.js:2768) at Object.onInvokeTask (vendor.js:51095) at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (polyfills.js:2767) at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (polyfills.js:2540) at resolvePromise (polyfills.js:3176) at polyfills.js:3241 at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (polyfills.js:2768) at Object.onInvokeTask (vendor.js:51095) at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (polyfills.js:2767) at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (polyfills.js:2540) at drainMicroTaskQueue (polyfills.js:2946)

If i used previous version of ionic database file is created.

Info

  • Environment: hybrid app

  • Platform: iOS/Android

  • Adapter: cordova-sqlite

  • Server: CouchDB

  • PouchDB Version : 6.3.4

  • cordova-plugin-sqlite-2 : 1.0.4

  • cordova-plugin-file : 6.0.1

  • pouchdb-adapter-cordova-sqlite : 2.0.3

  • pouchdb-find: 6.3.4

  • Ionic:

    ionic (Ionic CLI) : 4.10.1 (/usr/local/lib/node_modules/ionic)
    Ionic Framework : @ionic/angular 4.0.0
    @angular-devkit/build-angular : 0.12.4
    @angular-devkit/schematics : 7.2.4
    @angular/cli : 7.2.4
    @ionic/angular-toolkit : 1.3.0

  • Cordova:

    cordova (Cordova CLI) : 8.0.0
    Cordova Platforms : android 7.0.0, ios 4.5.5
    Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 3.1.1, (and 5 other plugins)

  • System:

    ios-deploy : 1.9.2
    NodeJS : v8.11.3 (/usr/local/bin/node)
    npm : 6.1.0
    OS : macOS High Sierra
    Xcode : Xcode 9.4.1 Build version 9F2000

Reproduce

Create ionic app, with latest version(4.x), then access pouchdb in iOS/Android.

Did it used to work before switching to ionic 4.10 ?
If so, you should report the issue in ionic itself, not in the forum…