Replies: 1 comment
-
Just a note that the I have tried building react apps using redux-first-history with vite 7.0.1 and vite 7.0.2. Same error in both vite versions. |
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.
-
In January 2025 I switched from vite 5.x to 6.x in my builds and got the following stack trace in the console:
The reason this happens is that HistoryRouter from redux-first-history is no longer recognized as a react-router.
Switching back to building with vite 5.x makes things work again (i.e. HistoryRouter from redux-first-history is accepted as a react-router).
Back in january I opened this issue on react-router-redux but nothing have happened there and none of my own investigations have brought fruit (my investigations are added as comments to redux-first-history issue 137).
So I'm trying my luck here. Ideas, workarounds and fixes are all welcome!
Thanks!
PS the most likely cause (from my investigations) seems to be that with vite 6.x, assets/index.js gets multiple versions of react-router and redux-first-history uses a different react-router version than the regular one. But why this happens and what to do with it is not clear.
Beta Was this translation helpful? Give feedback.
All reactions