Only index.html is showing on the GitHub Pages #55151
-
Hi there everyone! I am just learning git and this is my second project. I faced the problem with hosting my project on GitHub Pages. At first I encountered the error that only repository name showing on the public link created by Github. I moved the index.html to root folder and changed the path in the webpack config. And now only index.html renders on the GitHub Pages. And I see 404 error in the console. I thought that there was an error in the webpack settings, which I configured for this project for the first time. Сould there be a problem with the path to index.js or with caching? I cant figure it out. I have no idea what do now 🙁. Could anyone be so kind to help me with this? Any help will be heartily ❤appreciated. |
Beta Was this translation helpful? Give feedback.
This solution helped me today:
1 git checkout -b gh-pages
2 git push
3 npm run deploy
4 in the GitHub settings change the root folder to gh-pages
Everything works fine now, thanks for your effort to help me figure it out!