Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PouchDB 5.3.0 - Error: Database location or iosDatabaseLocation value is now mandatory in openDatabase call

Having issues with PouchDB 5.3.0. I am getting following error in my Ionic app

Error: Database location or iosDatabaseLocation value is now mandatory in openDatabase call

The above error is because of below line of code:

> var websql = new PouchDB('websqlpouch', {adapter: 'websql'});

I am trying to use SQLite plugin in Ionic app.

like image 898
Raj Avatar asked Nov 29 '22 23:11

Raj


1 Answers

The problem is already reported: https://github.com/pouchdb/pouchdb/issues/4979 You need to wait for a new version or use an older plugin version of sqlite-storage:

cordova plugin rm cordova-sqlite-storage
cordova plugin add [email protected]
like image 156
hypery2k Avatar answered Apr 26 '23 23:04

hypery2k