serviceWorker.js:97 Error during service worker registration: DOMException: Failed to register a ServiceWorker for scope ('https://localhost:8000/chat/') with script ('https://localhost:8000/chat/service-worker.js'): An unknown error occurred when fetching the script.
Hello,
We are deploying react application generated using crate-react-app to Apache Tomcat-8. We have homepage: "/chat" in package.json we generate a chat.war file and deploy to Tomcat, When we access app, now we are getting an error to register service worker with the below error.
Navigated to https://localhost:8000/chat/ An unknown error occurred when fetching the script. serviceWorker.js:97 Error during service worker registration: DOMException: Failed to register a ServiceWorker for scope ('https://localhost:8000/chat/') with script ('https://localhost:8000/chat/service-worker.js'): An unknown error occurred when fetching the script.

Can someone help me with this why this is failing.
Thanks,
Raghu.
@raghuprathap, any updates on the issue?
I have almost the same issue. Any Fix??? serviceWorker.js:98 Error during service worker registration: DOMException: Failed to register a ServiceWorker for scope ('https://192.168.10.102:9090/') with script ('https://192.168.10.102:9090/sw.js'): An SSL certificate error occurred when fetching the script.
Any updates please?
Any update on this?
have update for this? *_ *
Help us
i have same issue ;(