[I am receiving the all files in console but showing in the frontend and automatically refresh showing the whitescreen
][1]
Package.json fileQ5XvT.png
[I am receiving the all files in console but showing in the frontend and automatically refresh showing the whitescreen
][1]
Package.json fileQ5XvT.png
To resolve white/blank screen deployment of react app in Azure, try either of the following ways:
In package.json
add "homepage": "."
Make sure to publish from build
folder instead of public
folder
In your index.html
, make sure to check to specify correct JavaScript bundle.
References: How to fix the Blank screen After a Static Deployment with create-react-app and I have deployed a azure-webapp and the page displays blank
You can see this other post: Blank page after running build on create-react-app
If you're using react-router and trying to open index.html directly in the browser (or using electron, which essentially does that), in addition to setting homepage as others have suggested, replace your BrowserRouter with a HashRouter.