Replies: 1 comment
-
Hi! Your problem is propaby related to client-side routing not working correctly. You need to tell your webserver to always deliver |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
After building the application, if you open the site in the root in production, then everything will be fine. As you navigate the site, everything works great.
This is what source looks like:
But if I try to go to a url different from the root, for example,
/profile
, then react just breaks:Nothing is displayed on the screen and the source is strange.
I created the application using the create-react-app.
This is how I send the application from the server:
errors:
(just in case)
App.js:
index.js:
this is how it looks:
sorry for the low resolution.
How can this problem be solved?
Beta Was this translation helpful? Give feedback.
All reactions