title: Occasional Uncaught SyntaxError: Unexpected token < on production environment
body: <p>I'm running a react app locally, on a sandbox server, and on a production server. I only encounter the unexpected token error on the production server sometimes. The console points to a chunk.js file. When I refresh, the error disappears and the page renders correctly. The start scripts on th sandbox and production servers are the same:</p>
  <pre><code>npm run build
  serve -s build -l 12228 -n
  </code></pre>
  <p>The npm version on the production server is 12.19.0, on sandbox it's 13.11.0 and 12.13.1 locally.</p>
  <p>My script tag in my index.html:</p>
  <pre><code>&lt;script async src=&quot;https://www.googletagmanager.com/gtag/js?id=UA-180136700-1&quot;&gt;&lt;/script&gt;
  &lt;script&gt;
        window.dataLayer = window.dataLayer || [];
        function gtag(){dataLayer.push(arguments);}
        gtag('js', new Date());
  
        gtag('config', 'UA-180136700-1');
   &lt;/script&gt;
  </code></pre>
  <p>I use react-router.
  Any help is much appreciated.</p>