We keep getting an error when developing locally:
Reference
service-worker.web.js:33UncaughtDOMException: Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'http://localhost:4200/ngsw-worker.js' failed to load.
at http:
(anonymous) @ service-worker.web.js:33
A bad HTTP response code (404) was received when fetching the script.
main.ts:11 Service worker registration failed with: TypeError: Failed to register a ServiceWorker for scope ('http://localhost:4200/') with script ('http://localhost:4200/service-worker.web.js'): ServiceWorker script evaluation failed
When AOT is released, it works perfectly, but it can be annoying to see the exception when developing. I have tried to delete the line "importScripts('./ngsw-worker.js');" from the local mode, but then the automatic reload when saving is disabled