You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Since you haven't provided a reproduction repository, all I can do is advise you to catch the scenario when you receive the error, and debug it yourself. See if the worker script /mockServiceWorker.js is served in that case. The error message you see also mentions a way to resolve this issue (using an explicit serviceWorker.url option in worker.start(). Try that.
Prerequisites
Environment check
msw
versionBrowsers
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.
The text was updated successfully, but these errors were encountered: