title: Uncaught SyntaxError: Unexpected token '<' while deploying create react app to firebase hosting
body: <p>I'm trying to deploy my app to firebase hosting and I'm getting this error in the console <code>Uncaught SyntaxError: Unexpected token '&lt;'</code> in several <code>*.chunk.js</code> files. I have already deployed <a href="https://nayakunin.github.io/pr-mebel/#/" rel="nofollow noreferrer">my app to gh-pages</a> and everything has worked just fine. Also I have tried to deploy it to netlify hosting but I had <code>Failed to load resource: the server responded with a status of 404 ()</code> in all *.js files.
  Here is my <code>firebase.json</code>:</p>
  <pre><code>{
    &quot;hosting&quot;: {
      &quot;public&quot;: &quot;build&quot;,
      &quot;ignore&quot;: [
        &quot;firebase.json&quot;,
        &quot;**/.*&quot;,
        &quot;**/node_modules/**&quot;
      ],
      &quot;rewrites&quot;: [
        {
          &quot;source&quot;: &quot;**&quot;,
          &quot;destination&quot;: &quot;/index.html&quot;
        }
      ],
      &quot;headers&quot;: [
        {&quot;source&quot;: &quot;/service-worker.js&quot;, &quot;headers&quot;: [{&quot;key&quot;: &quot;Cache-Control&quot;, &quot;value&quot;: &quot;no-cache&quot;}]}
      ]
    }
  }
  
  </code></pre>
  <p>For some reason these <code>*.chunk.js</code> files contain some html code
  <a href="https://i.stack.imgur.com/qckY0.png" rel="nofollow noreferrer">image from the console</a>
  But at the same time my local <code>main.chunk.js</code> does not
  <a href="https://i.stack.imgur.com/6xhU6.png" rel="nofollow noreferrer">image of local file</a></p>