Property 'openDatabase' does not exist on type 'SQLite'

I was able to create a new database on another .ts file. Then, I wish top open the same database on a different .ts file.

this.platform.ready().then(() => {

      let db = new SQLite();
        name: 'data.db',
        location: 'default'
      }).then(() => {
        db.executeSql('CREATE TABLE IF NOT EXISTS plants (id INT PRIMARY KEY, crop TEXT)', {}).then(() => {
        }, (err) => {
          console.error('Unable to execute sql: ', err);
      }, (err) => {
        console.error('Unable to open database: ', err);


However, it is returning…

Property ‘openDatabase’ does not exist on type ‘SQLite’.

I am sure I have installed it since I was able to use it already. How come, openDatabase does not work?

Ionic v4
cordova plugin ls
cordova-plugin-advanced-http 2.3.1 “Advanced HTTP plugin”
cordova-plugin-calendar 5.1.5 “Calendar”
cordova-plugin-device 2.0.2 “Device”
cordova-plugin-file 6.0.2 “File”
cordova-plugin-geolocation 4.0.2 “Geolocation”
cordova-plugin-googlemaps 2.6.2 “cordova-plugin-googlemaps”
cordova-plugin-ionic-keyboard 2.2.0 “cordova-plugin-ionic-keyboard”
cordova-plugin-ionic-webview 4.1.3 “cordova-plugin-ionic-webview”
cordova-plugin-network-information 2.0.2 “Network Information”
cordova-plugin-splashscreen 5.0.2 “Splashscreen”
cordova-plugin-statusbar 2.4.2 “StatusBar”
cordova-plugin-whitelist 1.3.3 “Whitelist”
cordova-sqlite-storage 4.0.0 “Cordova sqlite storage plugin - cordova-sqlite-storage plugin version”
phonegap-plugin-barcodescanner 8.1.0 “BarcodeScanner” 1.1.1 “sqlite porter”

Any help is appreciated. Thanks

The code you have does not look like the docs.