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 17 support #1738

Closed
lukesmurray opened this issue Apr 22, 2021 · 2 comments · Fixed by #1740
Closed

react 17 support #1738

lukesmurray opened this issue Apr 22, 2021 · 2 comments · Fixed by #1740
Labels
Milestone

Comments

@lukesmurray
Copy link

If you try to install json forms with react 17 you get the following error.

npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: my-jsonforms-app@0.1.0
npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR!   react@"^17.0.2" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.12.0" from @jsonforms/react@2.5.0
npm ERR! node_modules/@jsonforms/react
npm ERR!   @jsonforms/react@"*" from the root project

I believe this error can be traced to the following line

"react": "^16.12.0"

Is JSON forms actually incompatible with react 17? Is it possible to support both 16 and 17?

@sdirix
Copy link
Member

sdirix commented Apr 23, 2021

Hi! JSON Forms works perfectly fine with React 17. We'll update the version constraints with the next release.

I'm wondering why this shows up as an error for you. Usually peer dependency issues are presented as warnings.

@sdirix sdirix added the react label Apr 23, 2021
@sdirix sdirix added this to the 2.5.1 milestone Apr 23, 2021
@lukesmurray
Copy link
Author

lukesmurray commented Apr 23, 2021 via email

@sdirix sdirix linked a pull request Apr 27, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants