title: Why does my GitHub pages page show as a blank screen? (React)
body: <p>I recently set up the below project in GitHub. I created a GitHub page also shown below, but when I try to open the page it shows a blank screen.</p>
  <p><a href="https://github.com/Bcruise/ECommerceSite" rel="nofollow noreferrer">https://github.com/Bcruise/ECommerceSite</a></p>
  <p><a href="https://bcruise.github.io/ECommerceSite/" rel="nofollow noreferrer">https://bcruise.github.io/ECommerceSite/</a></p>
  <p>I used exactly the same technique to create another GitHub page previously and it worked. But for some reason this one doesn’t and shows just the blank page.</p>
  <p>I used the technique in the page below and my package.json and index.html are below also.</p>
  <p>Does any have any idea what the problem might be?</p>
  <p><a href="https://github.com/gitname/react-gh-pages" rel="nofollow noreferrer">https://github.com/gitname/react-gh-pages</a></p>
  <pre><code>
  &lt;!DOCTYPE html&gt;
  &lt;html lang=&quot;en&quot;&gt;
    &lt;head&gt;
      &lt;meta charset=&quot;utf-8&quot; /&gt;
      &lt;link rel=&quot;icon&quot; href=&quot;%PUBLIC_URL%/favicon.ico&quot; /&gt;
      &lt;link rel=&quot;preconnect&quot; href=&quot;https://fonts.googleapis.com&quot;&gt;
      &lt;link rel=&quot;preconnect&quot; href=&quot;https://fonts.gstatic.com&quot; crossorigin&gt;
      &lt;link rel=&quot;preconnect&quot; href=&quot;https://fonts.googleapis.com&quot;&gt;
  &lt;link rel=&quot;preconnect&quot; href=&quot;https://fonts.gstatic.com&quot; crossorigin&gt;
  &lt;link href=&quot;https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,400;1,500&amp;family=Poppins:wght@100;300&amp;family=Urbanist:ital,wght@0,100;0,200;0,600;1,500;1,600&amp;display=swap&quot; rel=&quot;stylesheet&quot;&gt;
      &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot; /&gt;
      &lt;meta name=&quot;theme-color&quot; content=&quot;#000000&quot; /&gt;
      &lt;meta
        name=&quot;description&quot;
        content=&quot;Web site created using create-react-app&quot;
      /&gt;
      &lt;link rel=&quot;apple-touch-icon&quot; href=&quot;%PUBLIC_URL%/logo192.png&quot; /&gt;
      &lt;!--
        manifest.json provides metadata used when your web app is installed on a
        user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
      --&gt;
      &lt;link rel=&quot;manifest&quot; href=&quot;%PUBLIC_URL%/manifest.json&quot; /&gt;
      &lt;!--
        Notice the use of %PUBLIC_URL% in the tags above.
        It will be replaced with the URL of the `public` folder during the build.
        Only files inside the `public` folder can be referenced from the HTML.
        Unlike &quot;/favicon.ico&quot; or &quot;favicon.ico&quot;, &quot;%PUBLIC_URL%/favicon.ico&quot; will
        work correctly both with client-side routing and a non-root public URL.
        Learn how to configure a non-root public URL by running `npm run build`.
      --&gt;
      &lt;title&gt;React App&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;noscript&gt;You need to enable JavaScript to run this app.&lt;/noscript&gt;
      &lt;div id=&quot;root&quot;&gt;&lt;/div&gt;
      &lt;!--
        This HTML file is a template.
        If you open it directly in the browser, you will see an empty page.
        You can add webfonts, meta tags, or analytics to this file.
        The build step will place the bundled scripts into the &lt;body&gt; tag.
        To begin the development, run `npm start` or `yarn start`.
        To create a production bundle, use `npm run build` or `yarn build`.
      --&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  
  
  
  
  
  {
    &quot;homepage&quot;: &quot;https://Bcruise.github.io/ECommerceSite&quot;,
    &quot;name&quot;: &quot;ecommerce&quot;,
    &quot;version&quot;: &quot;0.1.0&quot;,
    &quot;private&quot;: true,
    &quot;dependencies&quot;: {
      &quot;@emotion/react&quot;: &quot;^11.9.3&quot;,
      &quot;@emotion/styled&quot;: &quot;^11.9.3&quot;,
      &quot;@fortawesome/free-solid-svg-icons&quot;: &quot;^6.1.1&quot;,
      &quot;@fortawesome/react-fontawesome&quot;: &quot;^0.1.18&quot;,
      &quot;@material-ui/core&quot;: &quot;^4.12.4&quot;,
      &quot;@material-ui/icons&quot;: &quot;^4.11.3&quot;,
      &quot;@mui/material&quot;: &quot;^5.8.6&quot;,
      &quot;@mui/styled-engine-sc&quot;: &quot;^5.8.0&quot;,
      &quot;@testing-library/jest-dom&quot;: &quot;^5.16.4&quot;,
      &quot;@testing-library/react&quot;: &quot;^13.3.0&quot;,
      &quot;@testing-library/user-event&quot;: &quot;^13.5.0&quot;,
      &quot;react&quot;: &quot;^18.2.0&quot;,
      &quot;react-dom&quot;: &quot;^18.2.0&quot;,
      &quot;react-router-dom&quot;: &quot;^6.3.0&quot;,
      &quot;react-scripts&quot;: &quot;5.0.1&quot;,
      &quot;styled-components&quot;: &quot;^5.3.5&quot;,
      &quot;web-vitals&quot;: &quot;^2.1.4&quot;
    },
    &quot;scripts&quot;: {
      &quot;predeploy&quot;: &quot;npm run build&quot;,
      &quot;deploy&quot;: &quot;gh-pages -d build&quot;,
      &quot;start&quot;: &quot;react-scripts start&quot;,
      &quot;build&quot;: &quot;react-scripts build&quot;,
      &quot;test&quot;: &quot;react-scripts test&quot;,
      &quot;eject&quot;: &quot;react-scripts eject&quot;
    },
    &quot;eslintConfig&quot;: {
      &quot;extends&quot;: [
        &quot;react-app&quot;,
        &quot;react-app/jest&quot;
      ]
    },
    &quot;browserslist&quot;: {
      &quot;production&quot;: [
        &quot;&gt;0.2%&quot;,
        &quot;not dead&quot;,
        &quot;not op_mini all&quot;
      ],
      &quot;development&quot;: [
        &quot;last 1 chrome version&quot;,
        &quot;last 1 firefox version&quot;,
        &quot;last 1 safari version&quot;
      ]
    },
    &quot;devDependencies&quot;: {
      &quot;gh-pages&quot;: &quot;^4.0.0&quot;
    }
  }
  
  </code></pre>