Issue with Service Worker Pouch Config NPM v 3.10
See original GitHub issueExpected behavior:
ember serve
works
Actual 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 master
Screenshots (if applicable):
OS and Browser: OSx Sierra
details
ENV.serviceWorker = {
enabled: true,
debug: true,
excludePaths: ['manifest.appcache'],
swIncludeFiles: [
'node_modules/ember-pouch/node_modules/pouchdb/dist/pouchdb.js'
]
};
^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.
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Service Worker loaded from CDN #591 - preactjs/preact-cli
sw.js is loaded from a CDN if a CDN is set in the webpack publicPath . This is forbidden: Failed to register a...
Read more >bs-service-worker - npm
This package is the home of BuckleScript bindings for the JavaScript service worker API. It is currently in a fairly early stage of...
Read more >astrojs-service-worker - npm
An Astro integration that generates a Service Worker. Powered by Workbox.. Latest version: 0.0.8, last published: 4 months ago.
Read more >register-service-worker - npm
Script for registering service worker, with hooks. Latest version: 1.7.2, last published: 2 years ago. Start using register-service-worker ...
Read more >Common errors | npm Docs
Broken npm installation · Random errors · No compatible version found · Permissions errors · Error: ENOENT, stat 'C:\Users\<user>\AppData\Roaming\npm' on Windows 7 ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
pouchdb-memory
is already a NPM module that you canrequire
. So it seems to be node.js only. Not sure aember-cli-pouchdb-memory
is needed.