-
Notifications
You must be signed in to change notification settings - Fork 8
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 version bumping from 17.x to 18.x #2191
Comments
Work Log
|
Work Log
|
Getting the below errors in devportal console
started changing files manually to ignore these issues. |
Work LogHi all, I started working on the ReactJS and Material UI upgrade for the Publisher portal. Currently installed the ReactJS and Material UI latest versions side-by-side along with the existing/old versions and started the migration of the components from the previous version to the latest version. The rationale behind this approach is to avoid the risk of breaking the existing functionality and to have a smooth migration. Once all the components are migrated to the latest ReactJS & MaterialUI versions, the old dependencies can be removed from the app.
Thanks and regards, |
Work Log
|
Work Log
|
Work Log
|
Admin portal update@@ -10,7 +10,7 @@
- "build:prod": "rm -R site/public/dist/; npm rum i18n && NODE_ENV=production NODE_OPTIONS=--max_old_space_size=4096 webpack --mode production --stats=errors-only",
+ "build:prod": "rm -R site/public/dist/; npm run i18n && NODE_ENV=production NODE_OPTIONS=--
@@ -25,15 +25,13 @@
- "@emotion/react": "^11.11.1",
+ "@emotion/react": "^11.11.3",
- "@material-ui/core": "^4.12.4",
- "@material-ui/icons": "^4.11.2",
- "@mui/icons-material": "^5.14.12",
- "@mui/lab": "^5.0.0-alpha.147",
- "@mui/material": "^5.14.10",
- "@mui/styles": "^5.14.10",
+ "@mui/icons-material": "^5.15.4",
+ "@mui/lab": "^5.0.0-alpha.160",
+ "@mui/material": "^5.15.4",
+ "@mui/system": "^5.15.4",
@@ -44,7 +42,7 @@
- "mui-datatables": "^3.8.5",
+ "mui-datatables": "^4.3.0",
@@ -98,7 +96,7 @@
- "react-hot-loader": "^4.13.0",
+ "react-refresh": "^0.14.0", React-hot-loader has to be removed since it's no longer supported [1]. React-refresh [4] has to be used from here onwards which is supported officially by react. Following [2][3][5] for the implementation [1] gaearon/react-hot-loader#1808 |
MUI upgrade [Admin portal]Following : [1] Major changes are included in the process. Ran Corrected few breaking changes that affects functionality. Need to correct Styles later after cross checking. Ran command The compilation is stable after manual fixes. The ui is out of style in many places. The tree view is not loading. Running the codemode for tree-view migration Fixed the runtime issues and styling issues. Moving to manual testing and UI test stabilisation.
[1] https://mui.com/material-ui/migration/migration-v4/ |
DevPortal portal update
|
Progress related to the ReactJS 18 upgrade in each of the portals could be tracked via the following sub-tasks.
|
DevPortal portal progress update
|
Closing as the task is completed. |
Problem
We need to bump the React version from 17.x to 18.x to allow developers the flexibility to use new libraries when they develop new features.
Solution
Affected Component
APIM
Version
4.3.0
Implementation
No response
Related Issues
React Bump to 17.X : #2160
Suggested Labels
No response
The text was updated successfully, but these errors were encountered: