Support react@18 in @rjsf/material-ui
See original GitHub issuePrerequisites
- I have searched the existing issues
- I understand that providing a SSCCE example is tremendously useful to the maintainers.
- I have read the documentation
- Ideally, I’m providing a sample JSFiddle or a shared playground link demonstrating the issue.
What theme are you using?
material-ui
Version
4.2.0
Current Behavior
Unable to install @rjsf/material-ui
with react@18
npm ERR! Could not resolve dependency:
npm ERR! peer @types/react@"^16.8.6 || ^17.0.0" from @rjsf/material-ui@4.2.0
npm ERR! node_modules/@rjsf/material-ui
npm ERR! @rjsf/material-ui@"*" 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.
Expected Behavior
The package @rjsf/material-ui
is installed without errors when using react@18
.
Steps To Reproduce
No response
Environment
- Node: 18.0.0
- npm: 8.6.0
Anything else?
No response
Issue Analytics
- State:
- Created a year ago
- Reactions:10
- Comments:10 (3 by maintainers)
Top Results From Across the Web
5.x Migration - react-jsonschema-form documentation
All PR and branch builds are running against Node 14, 16 and 18. React version¶. RJSF is no longer actively supporting React version...
Read more >Errors with version 4.0 and material-ui 4 · Issue #2721 - GitHub
In the above scenario, in spite of the warnings/errors, the form displays. But it breaks when I set `tagName="div". `import Form from '@rjsf/ ......
Read more >@visma/rjsf-material-ui - npm
Material UI theme, fields and widgets for react-jsonschema-form. Latest version: 3.1.0-54, last published: 2 days ago.
Read more >MUI installation doesn't work with React 18 - Stack Overflow
This is MUI's problem with the new version of react. They are working to release a new version of Material UI. in the...
Read more >@rjsf/material-ui | Yarn - Package Manager
@rjsf/material-ui. owner rjsf-team233.9kApache-2.05.0.0-beta.15TS vulns 0 vulnerabilities. Material UI 4 theme, fields and widgets for react-jsonschema-form.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@epicfaace I forked the rjsf repo and tried to update the @rsjf/material-ui package to support React 18. The main problem is that mui 4 (used in the @rsjf/material-ui/v4 package) carries with it React 16 || React 17 as peer dependency. If I wanted to open a pull request to allow supporting React 18, what would be the best way to solve this problem?
2.Split the @rsjf/material-ui release in 2 separate packages (e.g. @rsjf/material-ui-4 and @rsjf/material-ui with separated source code and package.json) so that the @rsjf/material-ui can work with react 18?
Let me know so that I can proceed 😃
@heath-freenome the
--force
is not a solution to the problem of not supporting React 18. It would be very useful to have it working on the new version of React, since not every project can downgrade to React 17. @kjkent I’m honestly confused about why we are discussing in this topic about things that don’t concern the main problem of React 18 compatibility 😅