hoodiehq / ember-hoodie

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

pouchdb is not getting added to vendor tree in all cases. #62

Closed brunopedroso closed 7 years ago

brunopedroso commented 7 years ago

To reproduce, I only needed to create a brand new ember app and install ember-hoodie. Then, I try to start ember s and it brakes with an error like:

The Broccoli Plugin: [SourceMapConcat: Concat: Vendor /assets/vendor.js] failed with:
Error: ENOENT: no such file or directory, open '/Users/bruno/workspace/ember-hoodie-test/tmp/source_map_concat-input_base_path-TGLZ1JMO.tmp/vendor/pouchdb/pouchdb.js'
    at Error (native)
    (...)

I've debugged the ember-hoodie code for a while and found out that we were missing a case when adding pouchdb to the tree.

I opened this PR that solves the problem: https://github.com/hoodiehq/ember-hoodie/pull/61