-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PouchDB ^6.4.3 - Database location or iosDatabaseLocation setting is now mandatory in openDatabase call #87
Comments
I had the same error. Doing this worked for me.
|
Hi @darshantejani007 . How do you fixed this issue? I used your code with no luck, still showing me the same error:
|
this._DB =( new PouchDB as any)('curriculum.db', { |
I'm hitting this problem also. I've tried updating my config as above (and tried things like 'name'):
Unfortunately, the error then changes to:
Anyone got this to work recently? (am using in an Ionic4/Angular/Capacitor context) |
The method signature above ("this.caseDb = (new PouchDB as any)(..." doesn't work, but this does:
But only compiles in an angular project with custom type definitions. I've submitted a PR to add a type for this project: DefinitelyTyped/DefinitelyTyped#36395 In the mean time, I should be able to run with that type manually dropped into my project (the index.d.ts file). |
Hi.
I have this issue when run this library in Android
My code:
this._DB = new PouchDB('curriculum.db', { adapter: 'cordova-sqlite' });
If I change my code for fix this issue to
this._DB = new PouchDB('curriculum.db', { adapter: 'cordova-sqlite', iosDatabaseLocation: 'Library', androidDatabaseImplementation: 2 });
the next error is shown
The text was updated successfully, but these errors were encountered: