pwa
pwa copied to clipboard
Error: ENOENT: no such file or directory, open 'D:\james\zeew-pwa\dist\service-worker.js'
When running npm test
Are you using the latest pwa template? e2e should pass after #21 was merged.
I just tried with a fresh install and everything works great:

If you generated your project a few days ago (before #21) then you might need to upgrade your template manually or simply generate a new one.
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):