Q
Q
Quintis2019-10-20 11:58:55
React
Quintis, 2019-10-20 11:58:55

Who can help with npm build?

Good day. I made a small template for the site menu on REACT, ran npm build but nothing is visible on the page, what's wrong with npm build? In the build for developers, everything is fine.
https://quintis1212.github.io/react-app/build/inde... - build
https://github.com/Quintis1212/react-app-prod production

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2019-10-20
@Quintis

Have you tried opening the console? There the static can't load because the file links are from the server root (/) and not relative to the build folder (/react-app/build) and you get a 404.
Solution: https://create-react-app .dev/docs/deployment#build...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question