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.

Usage with service worker

See original GitHub issue

Thanks for a great module!

I tried to use this with a site that uses ServiceWorker but it failed with the following reason

Error: DOMException: Failed to register a ServiceWorker: No URL is associated with the caller’s document.

It seems to be an issue with puppeteer. Is there any way we can workaround this? I thought it would be possible to just send page._client.send('Network.setBypassServiceWorker', { bypass: true }); or page._client.send('ServiceWorker.disable'); but I haven’t got it working.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
stereoboostercommented, May 7, 2018

You need to yarn add minimalcss --dev to be able to run minimalcss via yarn.

Open issue in https://github.com/NekR/offline-plugin and ask how to handle this error on the client. I tried to search through their documentation, but failed to find something useful

0reactions
kontrollantencommented, May 7, 2018

Okay, thanks for your quick support!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using Service Workers - Web APIs | MDN
A service worker functions like a proxy server, allowing you to modify requests and responses replacing them with items from its own cache....
Read more >
Service workers - web.dev
Service workers are a fundamental part of a PWA. They enable fast loading (regardless of the network), offline access, push notifications, and other ......
Read more >
Service worker overview - Chrome Developers
Service workers are specialized JavaScript assets that act as proxies between web browsers and web servers. They aim to improve reliability by ...
Read more >
What is the purpose of service worker? - Stack Overflow
A service worker is a specific type of JS Script, which runs in the background of the user's browser. It ...
Read more >
What Are Service Workers and How to Use Them? - Medium
This is where service workers come into the picture! Put simply, a service worker is a JavaScript file used to cache certain assets...
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