-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Error using unstable_HistoryRouter with 6.4.3 #9630
Comments
I found out the change introducing the bug. |
Also observing same issue while upgrading from |
Same issue with us on Ferdium while upgrading from |
This comment might help. |
I am facing the same issue, but not with |
There's no functional issue here - this is just a TS error from using an old The easiest solution is to just add ReactClient.createRoot(document.getElementById("root")).render(
// @ts-expect-error
<unstable_HistoryRouter history={history}>...</unstable_HistoryRouter>
); Otherwise you can leverage the new import { createBrowserHistory } from "@remix-run/router";
const history = createBrowserHistory({ v5Compat: true }); But the recommended solution is to upgrade to |
What version of React Router are you using?
6.4.3
Steps to Reproduce
"history": "^5.3.0",
"react-router-dom": "6.4.3"
Expected Behavior
No typing error.
Actual Behavior
This is broken since react-router-dom 6.4.3, 6.4.2 is working.
And a quick word to thank you for the amazing work on the data router !
The text was updated successfully, but these errors were encountered: