pubkey / rxdb

A fast, local first, reactive Database for JavaScript Applications https://rxdb.info/
https://rxdb.info/
Apache License 2.0
20.96k stars 1.02k forks source link

This.puch.sync is not a function #4

Closed haikyuu closed 7 years ago

haikyuu commented 7 years ago

Here is the line of code causing the issue Here is the stack trace RxCollection.js:543 Uncaught (in promise) TypeError: this.pouch.sync is not a function(…) I tried with memory and idb adapter.

pubkey commented 7 years ago

Hello @haikyuu RxDB uses the pouchdb-core to minimize its build-size. Pouchdb-core is not able to sync by itself. You need pouchdb-replication to sync and pouchdb-adapter-http to sync over http.

You can use the import from the angular2-example as reference. See here