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
toHashRouter
- 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?