Errors with version 4.0 and material-ui 4
See original GitHub issueInstalling version 4.0 @rjsf/core and @rjsf/material-ui, alongside with my material-ui 4, I get the warning
npm WARN @rjsf/material-ui@4.0.0 requires a peer of @rjsf/core@^3.0.0 but none is installed. You must install peer dependencies yourself.
(and indeed, in the package.json of @rjsf/material-ui one finds “@rjsf/core@^3.0.0” , that seems wrong)
Furthermore, if I ignore the install warning , npm start gives compile warnings
./node_modules/@rjsf/material-ui/dist/material-ui.esm.js
Module not found: Can't resolve '@mui/icons-material' in 'C:\wk\pcnt\trake\trake-ui\node_modules\@rjsf\material-ui\dist'
./node_modules/@rjsf/material-ui/dist/material-ui.esm.js
Module not found: Can't resolve '@mui/material' in 'C:\wk\pcnt\trake\trake-ui\node_modules\@rjsf\material-ui\dist'
… and when runnning I get on console
Error: Cannot find module '@mui/material'
at webpackMissingModule (material-ui.esm.js:1256:1)
at Module../node_modules/@rjsf/material-ui/dist/material-ui.esm.js (material-ui.esm.js:1256:1)
Using react 17 and Node 14 with
@material-ui/core: 4.12.3 @material-ui/system: 4.12.1 @material-ui/icons 4.11.2 @rjsf/core: 4.0.0 @rjsf/material-ui: 4.0.0
Issue Analytics
- State:
- Created 2 years ago
- Comments:17 (8 by maintainers)
Top Results From Across the Web
Troubleshooting - Material UI - MUI
This document covers known issues and common problems encountered when migrating from Material UI v4 to v5.
Read more >Material UI v4 is out - MUI
Material UI v4 has finally arrived. We are so excited about this release, as it defines better foundations for the UI components.
Read more >Migrating to v5: getting started - Material UI - MUI
If you are using a React version below 17.0.0, update your packages to at least v4.11.2 for Material UI and v17.0.0 for React....
Read more >Migration from v3 to v4 - Material UI - MUI
The very first thing you will need to do is to update your dependencies. Update Material UI version. You need to update your...
Read more >MUI Versions
The most recent stable version (✓) is recommended for use in production. ... Material UI v4: ⚠️ Guaranteed Support for security issues and...
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 Free
Top 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
Will work on this soon
Yes, and like in #2762 was mentioned, that is hard to do with CRA.
Does this mean that there is not going to be a fix for this in near future?
How about you separate the Mui4 and Mui5 into separate packages and possible mark v4 as legacy version?