P
P
prolina2019-06-30 20:37:44
React
prolina, 2019-06-30 20:37:44

Hosting content not showing?

After the npm run build command, I brought the build folder into the public_html folder of the hosting. In the buiild folder there was a static folder with folders (css, js, media), these folders were smashed into the corresponding folders of the public_html folder
Site content is not displayed
In the console, an error
5d18f36194184310623719.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
m_frost, 2019-06-30
@m_frost

When working with react, you should not have css and js folders, try to use the generally accepted data structure with atoms, components, screens, src folders + upload to heroku so it's easier and faster.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question