White page after deploy CRA project

Hello everyone!

We have a create-react-app project that displays a white screen after each deployment. To resolve this issue, we need to clear the cache to fetch the files again and make it work.

We are encountering the following console error:

main.40e68d6b.js:1 Failed to load resource: the server responded with a status of 401 ()

We have already tried the following troubleshooting steps:

  • Adding a _redirect file in the /public directory
  • Adding homepage configuration using both the ‘.’ notation and our domain name, as well as the Netlify domain
  • Updating the browserslist section
  • Adding basename="/" to react-router
  • Switching from BrowserRouter to HashRouter
  • Updating the packages
  • Clearing the Netlify cache

What is puzzling is that we have created two apps using CRA with the exact same configuration. The first one is working fine, but the second one returns a white screen after each deployment.

Any ideas?

Hi @f09611974d3abc47aa19,

Thanks for reaching out and welcome to Netlify’s Support Forums!

Could you share the Netlify app URL or name? For example: mysite.netlify.app.

I did find a similar issue in the Support Forums that had a solution here:

Could you give that a read and see if it helps you?