title: Failed to register a ServiceWorker: ServiceWorker cannot be started
body: <p>Everything was working fine with my Service Worker project, but suddenly I am seeing the following error:</p>
  
  <pre><code>Uncaught (in promise) DOMException: Failed to register a ServiceWorker: ServiceWorker cannot be started
  </code></pre>
  
  <p>This is being reported as on index.html:1 although I am registering the SW in a file called sw.js.</p>
  
  <p>I couldn't find anything on Google - any guidance on what causes this error to occur?</p>