title: Module not found, Cant resolve serviceWorker in 'React'
body: <p>I am learning how to use react alongside node.js and have just completed creating a login form for the front end using react.</p>
  <p>I am getting the below error message however, despite following the tutorial.</p>
  <p><a href="https://i.stack.imgur.com/xdyou.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xdyou.png" alt="Error message" /></a></p>
  <p>My code is below.</p>
  <pre><code>    import React from &quot;react&quot;;
  import ReactDOM from &quot;react-dom&quot;;
  import { BrowserRouter } from &quot;react-router-dom&quot;;
  
  
  import App from &quot;./App&quot;;
  import * as serviceWorker from &quot;./serviceWorker&quot;;
  
  ReactDOM.render(
    &lt;BrowserRouter&gt;
      &lt;App /&gt;
    &lt;/BrowserRouter&gt;,
    document.getElementById(&quot;root&quot;)
  );
  
  serviceWorker.unregister();
  </code></pre>
  <p>A link to the tutorial is below.</p>
  <p><a href="https://bezkoder.com/react-jwt-auth/" rel="nofollow noreferrer">Reference link</a></p>
  <p>Thanks for the help.</p>