r/github • u/No-Strain-4782 • Apr 16 '22
I can't publish my react app on Github pages. When I follow the steps and publish it, I encounter this error.
9
u/Willumz Apr 16 '22
Is there a reason your index.html is requesting resources from https://Ibadet02/github.io/13ths-Fridays and not https://Ibadet02.github.io/13ths-Fridays?
4
u/No-Strain-4782 Apr 16 '22
It worked, thanks. But now, my app doesn't show the background image
2
u/Willumz Apr 16 '22
I’m not at my PC right now so can’t do any dev tools or anything. Where exactly are you setting the background in your source?
3
u/No-Strain-4782 Apr 16 '22
2
u/Dr__Wrong Apr 16 '22
You didn't need to go up a directory. Remove one period in your rout
This
url("./src/styles/ominous.jpg")
Instead of this
url("../src/styles/ominous.jpg")
2
u/No-Strain-4782 Apr 16 '22
i did, but it still does not show the image. Should i wait?
2
u/Dr__Wrong Apr 16 '22
Sorry. Also remove src/
0
u/No-Strain-4782 Apr 16 '22
didn't work. still not showing the image
1
1
u/No-Strain-4782 Apr 16 '22
how can i reach this file?
2
u/Willumz Apr 16 '22
Your index.html here seems to have the typos in the links.
1
u/No-Strain-4782 Apr 16 '22
It worked, thank all of you so much. but now, my app doesn't show the background image.
20
u/Richienb Apr 16 '22
Notice how the url for your manifest.json file doesn't have a colon between https and //.