Skip to content
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

React 18 compatibility #1109

Closed
mariusrak opened this issue Apr 25, 2022 · 4 comments · Fixed by #1129
Closed

React 18 compatibility #1109

mariusrak opened this issue Apr 25, 2022 · 4 comments · Fixed by #1129
Assignees
Labels
Area: Core Affects the uniforms package Type: Feature New features and feature requests
Milestone

Comments

@mariusrak
Copy link
Contributor

Hello, the project doesn't work with newest react 18

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: canny@0.2.0
npm ERR! Found: react@18.0.0
npm ERR! node_modules/react
npm ERR!   react@"^18.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^17.0.0 || ^16.8.0" from uniforms@3.9.0
npm ERR! node_modules/uniforms
npm ERR!   uniforms@"3.9.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Please upgrade dependencies, thanks

@radekmie radekmie self-assigned this Apr 26, 2022
@radekmie radekmie added the Type: Feature New features and feature requests label Apr 26, 2022
@radekmie radekmie added this to Needs triage in Open Source (migrated) via automation Apr 26, 2022
@radekmie radekmie changed the title React 18 dependency React 18 compatibility Apr 26, 2022
@radekmie
Copy link
Contributor

Hi @mariusrak! Have you checked whether it works by any chance? I have no idea whether or not the changes introduced in v18 will affect us.

When it comes to properly supporting it, the only downside I see is the fact that the majority of our tests is written in Enzyme and it doesn't work with v18... It's on radar though.

@mariusrak
Copy link
Contributor Author

I didn't notice any issues with react 18

@radekmie radekmie added this to the v3.x milestone May 20, 2022
@radekmie radekmie moved this from Needs triage to To do in Open Source (migrated) May 20, 2022
@idmadj
Copy link
Contributor

idmadj commented Jun 9, 2022

Hey @radekmie, it would most probably be fine to add 18.1.0 to peer deps and continue using 17 with Enzyme until there is bandwidth to migrate that too. Uniforms doesn't use any of the client rendering APIs that broke: https://reactjs.org/blog/2022/03/08/react-18-upgrade-guide.html

Let me know if I can help

@radekmie
Copy link
Contributor

That's something we already considered but decided to postpone it a little. But as there's not much traction in updating the tests, I think we should do just fine with a note in the docs.

@radekmie radekmie linked a pull request Jun 10, 2022 that will close this issue
@radekmie radekmie added the Area: Core Affects the uniforms package label Jun 10, 2022
Open Source (migrated) automation moved this from To do to Closed Jun 10, 2022
@radekmie radekmie modified the milestones: v3.x, v3.10 Jun 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Core Affects the uniforms package Type: Feature New features and feature requests
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants