gitname / react-gh-pages

Deploying a React App (created using create-react-app) to GitHub Pages
6.47k stars 913 forks source link

App deploys successfully but rendering empty page (Unexpected Token) #172

Closed YasirAlibrahem closed 8 months ago

YasirAlibrahem commented 8 months ago

Category

Which of these applies to you? (Select all that apply)

Step

Which step of the tutorial do you want someone to help you with? (Select one)

Links

Tell us where we can find your code and your GitHub Pages site:

Everything else

You can put whatever you want into this section. After deployment, I'm getting a blank page. This issue points to a similar problem though different console error. It was resolved by implementing HashRouter, which I tried, but still facing the same problem. I'm getting an _Unexpected Token_

Image

YasirAlibrahem commented 8 months ago

Fixed it. I'm running this as a user site, and I didn't need the "homepage" variable in the package.json file.

gitname commented 8 months ago

Thanks for following up!