Answer the question
In order to leave comments, you need to log in
How to make an application created with create-react-app work correctly on a hosting?
Hello!
Created a skeleton application using the create-react-app command. Made part of the program. I ran npm run build to see the production version. But it did not open, only a blank screen was displayed. Using the instructions from the documentation, I figured out that the production version can be viewed on a static server using the npm install -g serve commands; serve -s build. So, running the application on the local server did work.
Uploaded the contents of the bundle folder to the hosting. But when you go to the site (of this kind blog.trololol.ru/bees), where these files are located, again a blank screen. (paths to js and css files are spelled out correctly)
Please, tell me a solution to the problem. I've looked all over the internet and it doesn't reach me. It seems to be very hard to imagine.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question