question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with Service Worker Pouch Config NPM v 3.10

See original GitHub issue

Expected 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:closed
  • Created 7 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
jkleinsccommented, Dec 5, 2016

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.

0reactions
broersecommented, Dec 2, 2016

pouchdb-memory is already a NPM module that you can require. So it seems to be node.js only. Not sure a ember-cli-pouchdb-memory is needed.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found