You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I was using react-router-dom for local development, I created a level 2 routing refresh page that resulted in the root resource not being found
#10075
nodejs: v18.18.0
pnpm: v7.1.3
When I use react-router6 When the version was developed locally, the secondary route I created could not find the corresponding resource file when refreshing the page. I configured historyApiFallback:true in webpack-dev-server. At that time, there was no problem for me to write level 1 in path, like dish/manager. I don't know where I did anything wrong, I'm used to this way of writing.
This is the minimum implementation repository: https://github.com/hideInEye/react-router-v6-demo.git
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
nodejs: v18.18.0
pnpm: v7.1.3
When I use react-router6 When the version was developed locally, the secondary route I created could not find the corresponding resource file when refreshing the page. I configured historyApiFallback:true in webpack-dev-server. At that time, there was no problem for me to write level 1 in path, like dish/manager. I don't know where I did anything wrong, I'm used to this way of writing.
This is the minimum implementation repository: https://github.com/hideInEye/react-router-v6-demo.git
Beta Was this translation helpful? Give feedback.
All reactions