hoodiehq / ember-hoodie

Build awesome offline-first Ember apps with Hoodie!
MIT License
17 stars 6 forks source link

Add support for ember-cli-fastboot #79

Open aleksip opened 7 years ago

aleksip commented 7 years ago

It seems that installing ember-cli-fastboot to an ember-hoodie project breaks the app. The resulting error is: Error: Invalid Adapter: undefined at new PouchDB$5.

Steps to reproduce:

  1. Install new Ember app with ember new
  2. ember install ember-hoodie
  3. Add files specified in README
  4. Verify that app works
  5. ember install ember-cli-fastboot
  6. Broken app with above error message
gr2m commented 7 years ago

that sounds like the PouchDB constructor which gets passed to hoodie does not include an adapter plugin. The PouchDB option must be passed here: https://github.com/hoodiehq/ember-hoodie/blob/326de4968b12db37fe37435455b31a36fe5c1020/index.js#L36, see http://docs.hood.ie/en/latest/guides/hapi-plugin.html