title: Getting white screen on running npm start in my react js project
body: <p><a href="https://i.stack.imgur.com/LC5Vr.png" rel="nofollow noreferrer">So is &lt;strictmode causing this problem ???</a><a href="https://i.stack.imgur.com/JnIAQ.png" rel="nofollow noreferrer">2</a>I am getting a white screen while i am trying to run npm start . The npm start works but I am getting a white screen on http://localhost:3000/ . I tried to add {&quot;homepage&quot;: &quot;.&quot;,} to my index.html file ,still i am getting the same error ? Could you please tell me where i am doing things wrong ? Also i tried to debug it through google console but it shows nothing.<img src="https://i.stack.imgur.com/HHgs3.png" alt="3" /></p>
  <pre><code>index.html file:
  &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;stylesheet&quot; href=&quot; https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css&quot;&gt;
      &lt;link rel=&quot;stylesheet&quot; href=&quot;https://unpkg.com/purecss@2.0.3/build/grids-responsive-min.css&quot;&gt;
      &lt;link rel=&quot;icon&quot; href=&quot;%PUBLIC_URL%/favicon.ico&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;
  
  **package.json file** 
  
      {
        &quot;name&quot;: &quot;chatapp&quot;,
        &quot;version&quot;: &quot;0.1.0&quot;,
        &quot;homepage&quot;: &quot;.&quot;,
        &quot;private&quot;: true,
        &quot;dependencies&quot;: {
          &quot;@testing-library/jest-dom&quot;: &quot;^4.2.4&quot;,
          &quot;@testing-library/react&quot;: &quot;^9.3.2&quot;,
          &quot;@testing-library/user-event&quot;: &quot;^7.1.2&quot;,
          &quot;firebase&quot;: &quot;^7.19.1&quot;,
          &quot;font-awesome&quot;: &quot;^4.7.0&quot;,
          
          &quot;react&quot;: &quot;^16.13.1&quot;,
          &quot;react-dom&quot;: &quot;^16.13.1&quot;,
          &quot;react-loading&quot;: &quot;^2.0.3&quot;,
          &quot;react-router-dom&quot;: &quot;^5.2.0&quot;,
          &quot;react-scripts&quot;: &quot;3.4.3&quot;,
          &quot;react-toastify&quot;: &quot;^6.0.8&quot;
        },
        &quot;scripts&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;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;
          ]
        }
      }
  </code></pre>