I’m relatively new to Netlify and I’ve come across a barrier. When I build and deploy a create-react-app to Netlify I don’t get any errors, but the result is a blank page.
I get one warning when I inspect the page: "Uncaught SyntaxError: Unexpected token <"
Drilling into the code here: <!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><title>Case Convertor</title></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script type="text/javascript" src="/caseconverter/static/js/main.217fe3f5.js"></script></body></html>
when I changed the homepage to “.” I could then deploy. that said, I tried to go back and see if changing it to the original would halt the build again, but it didn’t. I also removed the homepage field from the package.json altogether and it had no effect. so, now I’m unsure as to what could have happened originally. maybe some internal hiccup?
When I tried to deploy my react app it shows build error but after 6 tries it shows successful deploy website is live but when i preview the url it shows blank page and some time broken url. Can anyone help me out as I am too much exhausted and dissappointed . I will be very thankful for your help this is my repo link https://github.com/Ayesha878/mobile-store
I tried a lot of the solutions suggested on netlify answers.
My specific case was netlify was not able to locate the /build folder.
This was due to an edge case inside my code which specified the build folder.
So… just keep that in mind if these solutions aren’t working. It might be that netlify is not locating the correct location for the build folder.