P
P
Pavel_202022-02-25 14:45:51
React
Pavel_20, 2022-02-25 14:45:51

Why does the react-landing on the hosting not come off?

Good day!
There is a landing page on react.
I want to post it on my hosting (linkhost).
Did npm run build. I put the files from build in the root of the folder, where all the projects are.
6218c2b667914503942936.jpeg
As a result, I have an empty page with an empty root.
6218c2c384148679100620.jpeg
What is the pitfall?
On github, by the way, the same white blank sheet...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel, 2022-02-25
@Pavel_20

the screen is good, but the fact that there are 9 errors in the console, and the console is the next tab, doesn’t hint at anything? ))
Most likely you have wrong paths to the files.
Add the path in the pakage.json of the project to the homepage directive

"version": "0.1.0",
  "private": true,
  "homepage": ".",

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question