-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Issue with Service Worker Pouch Config NPM v 3.10 #832
Comments
Don't know much about serviceWorker but pouchdb.js is in the |
Also encountered this w/ npm 3.5.2. It used to work fine at least at this point in time: 2d473fe That's what I was based off of before syncing to the latest today. |
@BogdanAlexandru ember-pouch moved from Bower to NPM only. |
There's also an unresolved peer dependency issue with pouchdb.js issue with my version of NPM with the latest master commits (that I pulled down yesterday). The service worker config there is hard-coded to the npm 2.x module layout. I think we can check to see if the pouchdb module exists in the |
ember-pouch itself uses: var pouchdb = stew.find(path.join(path.dirname(require.resolve('pouchdb')), '..', 'dist'), {
destDir: 'pouchdb',
files: ['pouchdb.js']
}); to find the browserified |
@broerse I wasn't aware that pouchdb.js is in the /vendor/pouchdb/pouchdb.js broccoli tree. Is pouchdb.memory.js also available there? If it is I could fix the unresolved peer dependency. |
|
|
I just committed a fix for this. Basically I added pouchdb as a direct dependency in package.json which means pouchdb.js will consistently be available at node_modules/pouchdb/dist/pouchdb.js (it already was for npm 3.x). I also added pouchdb-core as a dependency to fix the warnings. |
Expected behavior:
ember serve
worksActual behavior:
ember serve
results in Error: ENOENT: no such file or directory, open 'node_modules/ember-pouch/node_modules/pouchdb/dist/pouchdb.js'Steps to reproduce:
Use npm > 3.0 and run
ember serve
off masterScreenshots (if applicable):
OS and Browser:
OSx Sierra
details
^Need to make the swIncludeFiles configurable with some sort of module fetch concept. I'd be happy to make PR, unless someone has a good solution.
The text was updated successfully, but these errors were encountered: