Refresh and Routing Error in React + Typescript + Webpack #13297
-
My react app is not working when I try refresh I tried to use historyApiFallback: true in webpack dev server. |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments
-
This allows to return same html file for 404 error when we use react |
Beta Was this translation helpful? Give feedback.
-
Yes, now my react app is not working when refresh. |
Beta Was this translation helpful? Give feedback.
-
What is the issue now exactly, so it is not refreshing? |
Beta Was this translation helpful? Give feedback.
-
localhost:3000/login is working but localhost:3000/login/forgot is not working |
Beta Was this translation helpful? Give feedback.
-
It seems that the following assets are required from localhost:3000/login/bundle.js … |
Beta Was this translation helpful? Give feedback.
-
How can I do it? |
Beta Was this translation helpful? Give feedback.
-
You have to set public path to "/", which means the root directory of your project. |
Beta Was this translation helpful? Give feedback.
-
Yes, thanks. |
Beta Was this translation helpful? Give feedback.
-
You're welcome! |
Beta Was this translation helpful? Give feedback.
You have to set public path to "/", which means the root directory of your project.