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. |
Answered by
PhantomGuru0427
Jul 18, 2023
Replies: 9 comments
|
This allows to return same html file for 404 error when we use react |
0 replies
|
Yes, now my react app is not working when refresh. |
0 replies
|
What is the issue now exactly, so it is not refreshing? |
0 replies
|
localhost:3000/login is working but localhost:3000/login/forgot is not working |
0 replies
|
It seems that the following assets are required from localhost:3000/login/bundle.js … |
0 replies
|
How can I do it? |
0 replies
|
You have to set public path to "/", which means the root directory of your project. |
0 replies
Answer selected by
InnovizionSoft
|
Yes, thanks. |
0 replies
|
You're welcome! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You have to set public path to "/", which means the root directory of your project.