pouchdb-community / pouchdb-adapter-cordova-sqlite

PouchDB adapter for Cordova SQLite. Designed for PouchDB 6+.
Apache License 2.0
73 stars 32 forks source link

PouchDB 6.4.2 - TypeError: winningRev is not a function #84

Closed lucapale closed 6 years ago

lucapale commented 6 years ago

Issue

I am using PouchDB in a Ionic app. With PouchDB 6.3.4 I was using the SQLite adapter for iOS. After upgrading to 6.4.2 I get this error and the db does not work:

Error in Success callbackId: SQLitePlugin1932871848 : TypeError: winningRev is not a function. (In 'winningRev(docInfo.metadata)', 'winningRev' is undefined)

Info

Reproduce

Use pouchdb-adapter-cordova-sqlite in iOS app with 6.4.2.

pablomaurer commented 6 years ago

This was a PouchDB Issue 7054 and is solved with PouchDB 6.4.3. So you can close this issue.

paolosanchi commented 6 years ago

I confirm, https://github.com/pouchdb-community/pouchdb-adapter-cordova-sqlite/pull/79 still need to be applied

yurimorini commented 6 years ago

Same here, I confirm you need to update pouchdb-core to the latest version available (6.4.3 at the moment)