Gh pages hasn't deployed my create-react-app and react-router app #23240
-
Hello everybody, I am new in this community and finally it is this time when I have to ask you for your help. I would like to deploy my practice app in gh-pages. I read instructions how to do it and… it didn’t work. I still looking for a mistake I did but I can’t find it 😕 In dev tools console i received: This is link to my github repo of my project: Thank you in advance for your help |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi @KarolChilimoniuk, welcome to the GitHub Support Community! I think this is the same issue as another user was having in this thread here:
Hi @XAHTC, welcome to the GitHub Support Community! I’m not seeing those errors in your Pages site anymore, however it looks like they were caused by your asset URLs missing the test-app repository name section. When you’re deploying a React app to GitHub Pages there’s some steps you need to follow to make sure that everything works correctly—specifically adding the homepage variable to your package.json file. This means that all your URLs include the required repo name. For exact steps I’d r… It looks like your asset links are missing the
Deployment | Create React Appnpm run build creates a build directory with a production build of your app. Set up your favorite HTTP server so that a visitor to your site is served index.html, and requests to static paths like /static/js/main..js are served with the contents of... |
Beta Was this translation helpful? Give feedback.
-
I just noticed you have added the |
Beta Was this translation helpful? Give feedback.
-
Sorry for my late response but my Christmas vacation was longer than I supposed :] Thank you for your help. I realised that I made a mistake in my package.json and additionally I read create-react-app documentation carefully in Deployment chapter and I have found a solution of my problem. |
Beta Was this translation helpful? Give feedback.
Hi @KarolChilimoniuk, welcome to the GitHub Support Community! I think this is the same issue as another user was having in this thread here: