Only initializing ServiceWorkerModule in the production environment causes injection of SwUpdate to fail in development, and thus the component trying to inject it fails to initialize. Initializing ServiceWorkerModule in development loading of ngsw.json to fail at runtime, but only resulting in a console logging.
--
Consulting Software Engineer and AWS Solutions Architect with over 34 years of experience. Specializing in AWS serverless application development and IoT.
Love podcasts or audiobooks? Learn on the go with our new app.