vuejs-templates / pwa

PWA template for vue-cli based on the webpack template
MIT License
3.04k stars 508 forks source link

Service Worker is not working as expected in react typescript #208

Open chetanshinde118 opened 3 years ago

chetanshinde118 commented 3 years ago

Below is the error which I received. TypeError: Failed to register a ServiceWorker for scope ('http://localhost:9000/') with script ('http://localhost:9000/serviceWorker.js'): A bad HTTP response code (404) was received when fetching the script.

Below are the script added in index.html and serviceWorker.js is added at same location. for now I kept serviceWorker.js empty