简体   繁体   中英

white screen after using npm run build react app

After using

npm run build

to build developed application for deployment it shows white screen when opening

build/index.html

while I'm setting homepage: "." in package.json.

Console Errors Screen shots enter image description here

I have found a way to run the project whit a npm package called serve

serve -s build

this worked for me instead of opening the file from /build/index.html directly

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM