While indexing react web app on google console google bot is showing this error:
Whoops. Service worker registration failed, error: Error: Rejected at ServiceWorkerContainer.wrsParams.serviceWorkers.navigator.serviceWorker.register (<anonymous>:10:852) at s (https://ssr-static.mywebsite.com/v19.7.7-1815-geb247de9e/static/bundle.ba64e845.js:2:828484) at https://mywebsite.com/v19.7.7-1815-geb247de9e/static/bundle.ba64e845.js:2:828253
https://ssr-static.mywebsite.com/v19.7.7-1815-geb247de9e/static/bundle.ba64e845.js:2
Service worker registration working fine when viewed in browser.
How can this be fixed for google web cache?