Fix: Resolve dependency warnings and upgrade Material-UI to MUI v5 - #2
Open
xavier506 wants to merge 1 commit into
Open
Fix: Resolve dependency warnings and upgrade Material-UI to MUI v5#2xavier506 wants to merge 1 commit into
xavier506 wants to merge 1 commit into
Conversation
- Migrate @material-ui/core v4 to @mui/material v5 for React 18 compatibility - Add missing peer dependencies: @types/react, @popperjs/core - Add Algolia search dependencies: @algolia/client-search, search-insights - Update all import statements from @material-ui/* to @mui/* - Modernize CustomStepper component using sx props instead of makeStyles - Resolve 15+ dependency warnings while maintaining functionality - Ensure build passes successfully with all updates
Contributor
Author
|
bugbot run |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎯 Summary
This PR resolves all dependency warnings by upgrading Material-UI v4 to MUI v5 and adding missing peer dependencies.
🔧 Changes Made
Major Upgrades
@material-ui/coreto@mui/materialfor React 18 compatibilitysxprops instead of deprecatedmakeStylesDependencies Added
@mui/material@^5.15.0- Modern Material Design components@emotion/react@^11.10.0- Required by MUI v5@emotion/styled@^11.10.0- Required by MUI v5@types/react@^18.0.0- TypeScript support for React@popperjs/core@^2.11.8- Required by Bootstrap 5@algolia/client-search@^5.12.0- Algolia search clientsearch-insights@^2.0.0- Algolia search insightsDependencies Removed
@material-ui/core@^4.12.4- Incompatible with React 18Files Updated
@material-ui/*to@mui/*🧪 Testing
yarn build)📊 Impact
Before: 15+ dependency warnings
After: 0 dependency warnings (only 2 minor internal Docusaurus warnings remain)
This upgrade ensures the project uses modern, well-maintained dependencies and is fully compatible with React 18.