ServiceWorker MIME Type Error ('text/html') on register (React)
问题 The current behavior: Service worker does not register due to the below error The expected behavior: Service worker registers Details Posted as a github issue: https://github.com/facebook/create-react-app/issues/8593 Service worker is giving the following error when attempting to register: Error during service worker registration: DOMException: Failed to register a ServiceWorker for scope ('http://localhost:3000/') with script ('http://localhost:3000/sw.js'): The script has an unsupported