Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: [MSW] Failed to locate the Service Worker registration. #2163

Open
4 tasks done
radiantone opened this issue May 22, 2024 · 0 comments
Open
4 tasks done

Error: [MSW] Failed to locate the Service Worker registration. #2163

radiantone opened this issue May 22, 2024 · 0 comments
Labels
bug Something isn't working needs:triage Issues that have not been investigated yet. scope:browser Related to MSW running in a browser

Comments

@radiantone
Copy link

Prerequisites

Environment check

  • I'm using the latest msw version
  • I'm using Node.js version 18 or higher

Browsers

Chromium (Chrome, Brave, etc.)

Reproduction repository

...

Reproduction steps

...

Current behavior

In my webapp, msw service worker loads fine most of the time, but if I reload the app, check the console, and reload it a few times in a row, the error shows up intermittently. I checked loading the serviceworker script in chrome (served from NGINX btw) and never showed any problem reaching or loading the script.

Expected behavior

To load the service worker script without claiming it failed to locate it.

@radiantone radiantone added bug Something isn't working needs:triage Issues that have not been investigated yet. scope:browser Related to MSW running in a browser labels May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs:triage Issues that have not been investigated yet. scope:browser Related to MSW running in a browser
Projects
None yet
Development

No branches or pull requests

1 participant