-
Notifications
You must be signed in to change notification settings - Fork 505
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: ENOENT: no such file or directory, open 'D:\james\zeew-pwa\dist\service-worker.js' #34
Comments
No, I am still getting an error. |
It happens because of SWPrecacheWebpackPlugin use physical fs not memfs. I think, generating service-worker.js is not necessary while e2e test. we can bypass when it times of test. thought? @addyosmani |
Pardon the delay replying. I would be down for folks ignoring the service-worker.js in end-to-end tests but we can also explore making this work better. As @ragingwind pointed out, due to the fact we output a file to disk vs memfs, some workarounds might need to be crafted here. |
@addyosmani I suppose @andrisole92 needs to disable service-worker programmatically, for whose who used it incorrectly (to disable errorneus site pages cache completely): <script> navigator.serviceWorker.getRegistrations().then(function(registrations) { for(let registration of registrations) { registration.unregister() } }) </script> |
When running npm test
The text was updated successfully, but these errors were encountered: