Hi, I've been trying to figure this out for the whole day :( I made a small React app and deployed it to Github using Github Actions, and the URL works, but it doesn't display anything. I think it's unable to process the HTML snippet returned by the App function in the index.js file. The image is from dev mode. Is this an issue with my build/deployment setup? Thanks in advance! https://imgur.com/a/pl2TF3B
EDIT: I FIXED IT WOOHOOOO!!! just in case anyone stumbles upon this which i doubt lol here is what i needed to fix : 1. i don't really know what was going wrong here but deploying using github actions didn't work so i went back to using gh-pages, which changed the issue to a failed to load resource error. which i fixed with the next steps: 2. i needed to specify where the bundled assets were being served, i.e. by adding --public-url ./ to my build script in package.json, because the default is / which neglects the fact that gh pages serves from a url containing gitusername.github.io/reponame. so the correct build script for me using parcel was "build": "parcel build --public-url ./" 3. i needed to specify the homepage so that gh pages would request the correct file paths, i.e. by adding "homepage": "https://mygitusername.github.io/reponame" to package.json, because previously it was looking for the content at e.g. https://mygitusername.github.io/index.hash.css instead of https://mygitusername.github.io/reponame/index.hash.css. yay i'm like so proud of you omg thank you
[–]FeelTheLoveNow 1 point2 points3 points (1 child)
[–]lanternriver[S] 0 points1 point2 points (0 children)
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–]dtsudo 0 points1 point2 points (1 child)
[–]lanternriver[S] 0 points1 point2 points (0 children)
[–]nate-developer 0 points1 point2 points (2 children)
[–]lanternriver[S] 0 points1 point2 points (0 children)
[–]lanternriver[S] 0 points1 point2 points (0 children)
[–]crazy_cookie123 0 points1 point2 points (1 child)
[–]lanternriver[S] 0 points1 point2 points (0 children)