title: Failed to register service-worker TypeError - Expo Error
body: <p>I have recently encountered the following error when I <code>npm run start</code> my expo app;</p>
  <blockquote>
  <p>Uncaught DOMException: Failed to execute 'importScripts' on
  'WorkerGlobalScope': The script at
  'http://localhost:19006/service-worker.js' failed to load.
  at http://localhost:19006/expo-service-worker.js:93:6</p>
  <p>The script has an unsupported MIME type ('text/html').</p>
  </blockquote>
  <p>This error has never occurred until of late, in which I pulled down the app source code onto a new machine, so I have a incline that this could be the issue.</p>
  <p>When I used to Service Worker debugger using Chrome Dev Tools, the error flags up on the last line of the code in <code>expo-service-worker.js</code> (see screenshot)</p>
  <p><a href="https://i.stack.imgur.com/EDcz6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EDcz6.png" alt="service-worker-error" /></a></p>
  <p>I have literally done nothing different, I have seen other solutions stating I should modify some of the service-worker registration code, but this sits uncomfortable with me being as this is an automatic process when running the app.</p>
  <p>The app <em>boots-up</em> fine, but it has trouble connecting to the external api linked to the app, because the service worker is not being registered.</p>
  <p>One my other machine, the app launches, registers a service worker and connects to the api fine, just not on the machine currently.</p>
  <p>Any suggestions?</p>
  <p>Thanks.</p>