How to fix the white screen after build with create-react-app?

前端 未结 5 1624
心在旅途
心在旅途 2021-01-12 14:05

I used react-router-dom and I build my react-app. When I deploy it on the server, I get a blank page and the console is empty.

My App.js is :



        
5条回答
  •  Happy的楠姐
    2021-01-12 14:52

    I had this problem. I was trying to open the application after build with double-clicking the index.html and didn't work either, I got the blank page but if the built files are run in a server environment works. https://create-react-app.dev/docs/deployment/

提交回复
热议问题