-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Upgrading to react 17.0.0 breaks connected-react-router which breaks react-admin #5496
Comments
It may be fixed when #5453 is merged and |
When is 3.10 scheduled for release? |
I built the tutorial using both yarn and yarn2 with the latest react versions (on a fresh CRA app, v17). Yarn1 works as expected, but lots of unmet peer dependency warnings. Yarn2 builds eventually, but the link routes don't work due to exception. It works on yarn2 when I downgrade If you checkout redux toolkit, it may allow you to remove Note I had to use this command to install Yarn2 due to pending fix: |
The problem I had was because I was using react-admin in an application which was already using redux, so I implemented the store by my self. It was working until the v17 release, then it stopped working. I decided to split my application, removing the admin from the core and making another front-end just for the admin. I'm not having any trouble using v17 with just react-admin. I guess the problem comes when you update to v17 with a custom redux store |
I have the same problem without a custom redux store. Did you found a workaround ? |
I'm hitting this issue without a custom redux store; I'm just trying to implement a custom menu. I'm also still on React v16. |
The issue is caused by having multiple versions of You can check if it's your case with yarn Check the ranges of the packages depending of If this is your case (which it probably is) you can use In your case, you can run |
By the way, this issue can probably be closed, since it's not a problem with react 17.0.0 |
Everything was running fine, but after I upgraded React to 17.0.0, react-admin stopped working, because of an incompatibility between connected-react-router and react 17.0.0:
I really like react-admin, but it could move away from
connected-react-router
. This lib is not updated regularly and I've had so many trouble with it before.Here are my lib versions:
I think there is a workaround passing a context do
<ConnectedRouter>
, but then I would need to stop using the<Admin>
and implement it by myself, which would be a big pain to refactor all my resourcesThe text was updated successfully, but these errors were encountered: