A bad HTTP response code (404) was received when fetching the script.
The Possible Solution I have Found -
**Move your `sw.js` file out of any sub folder/directory and put it at the common or public folder.** <br>And the error would go away and the Service Worker would get easily registered.