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
vite-plugin-pwa removes mock service worker #693
Comments
you can try adding an env var when testing, then use it to disable PWA. |
@userquin Isn't there a way to not unregister other SW's? |
using |
If you use a custom service worker you can import |
check registering the msw sw in another scope: check last entry here https://stackoverflow.com/questions/77292614/vite-pwa-not-able-to-register-mock-service-worker-in-parallel-with-other-servi |
Issue: when VitePWA is activated, it conflicts with my MSWJS mock service worker and apparently removes Mock Service Worker from my application.
steps to reproduce:
Install React-App through vite installation
install and configure vite-plugin-pwa:
Behaviour:
the vite-pwa extension, when enabled, removes the mock service worker, and the below error is shown in the console:
Expected:
Extension to not conflict and remove the mock service worker
The text was updated successfully, but these errors were encountered: