craftzdog / pouchdb-adapter-react-native-sqlite

PouchDB adapter using ReactNative SQLite as its backing store

Home Page:https://github.com/craftzdog/pouchdb-react-native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: extend is not a function

f4z3k4s opened this issue · comments

Hey!

First of all, thank you for this package. We've been updating it recently to 1.0.2 which is supposed to work with PouchDB version 6.2.0. However, I experienced this error :
screenshot from 2017-06-12 14-10-54
This is an importing issue, I managed to solve it by replacing var extend = PouchUtils.jsExtend with var extend = require('pouchdb-extend') in pouchdb-adapter-react-native-sqlite/lib/index.js and running npm install pouchdb-extend. Obviously, this is not suitable for long-term, could you check if the mentioned versions above are working correctly together?
Thank you!

Oops, 1.0.2 is made by #2 and I didn't tested with it, sorry!
I confirmed that Object.assign works well.
I'm going to roll it out, thanks!

1.0.3 is out!

Woow, superfast! Thank you man, keep up the good work. 👍