0
votes

enter image description here

enter image description here

I followed the entire deploy guide on https://create-react-app.dev/docs/deployment/#step-1-add-homepage-to-packagejson and I am still struggling (The photo's do not show it but I have also installed gh-pages to my devDependencies). Also, in the guide it says to host on gh-pages branch but I don't have that. Am I supposed to make one and push my code through that branch? Please help I'm desperate :)

UPDATE: Ok so now I have the site deployed, but it's only rendering my navbar? I'm extremely confused now haha enter image description here

ANOTHER UPDATE: Ok, we're back to square one haha. It seems I accidentally pushed my build folder to my repo which cause the navbar to render? This photo shows what happens when I run the command npm run deploy enter image description here

If there is anything I need to include to make helping me easier, please let me know. I feel that I have basically followed every step that was provided from https://create-react-app.dev/docs/deployment/#step-1-add-homepage-to-packagejson quite accurately.

sigh, ANOTHER UPDATE: Ok so a gh-pages branch was automatically created after I re-tweaked my package.json. The page is deploying but only rendering my navbar, yet again. my app.js I figured maybe it had something to do with the fact that i was using react-router? I'm not sure :/...

You're making progress which is great 👍add your code to the question and I'm sure someone will help you out.Danoram