Skip to content
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

db.post() error #80

Open
fedex995 opened this issue Sep 30, 2017 · 1 comment
Open

db.post() error #80

fedex995 opened this issue Sep 30, 2017 · 1 comment

Comments

@fedex995
Copy link

Hi!
I'm trying to post a document to my db using this adapter.
When doing so, I get the following error:

pouchdbUtils.uuid(32, 16).toLowerCase is not a function pouchdb
My code is really simple:
` PouchDB.plugin(cordovaSqlitePlugin);

  this.addressLocalDB = new PouchDB('addresses.db', {adapter: 'cordova-sqlite'});
  this.addressLocalDB.post({}).then((res) => console.log (res)).catch ((err) => console.log (err));`

I'm waiting for the device ready callback and following all the instructions.

@paolosanchi
Copy link
Contributor

The last updates (pouchdb and sqlite adepter) should fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants