update @mui/icons-material depdency in material-renderers by devbydaniel · Pull Request #2218 · eclipsesource/jsonforms
Sorry if I'm missing something super obvious - I basically just changed the ~ to ^ for the @mui/icons-material dependency in material-renderers, updated the lock file and updated dayjs from 1.10.6 to 1.10.7 because of a peer dependency requirement. The error during deployments happen to me even before applying the changes.
Hi @devbydaniel ,
thanks for the contribution :)
I can see that even the normal build (not just the deployment) fails due to some react error. I don't know what exactly causes this. However, I think it makes sense to only update directly material related dependencies in this PR:
- It's easier to see what could cause errors
- Many of the other dependencies (e.g. webpack, rollup, react and its types, etc.) are also used in other packages and I'd prefer keeping the versions consistent.
Thus, my suggestion is to revert all changes that don't update mui, emotion or dayjs. What do you think?
Thanks for you reply! I actually tried to change only the packages necessary for updating the version of material-icons. I changed the ~ to ^, did a pnpm up and then bumped dayjs because I received a warning that due to the update of packages, a peer depdency (dayjs) is not respected anymore. I don't have that much experience working on such issues, do you have any pointers on what to do instead?
And just to be sure - I tried to build a test application from master without applying any changes and even there I received the same error as in this PR. So could it be possible that the issue is not related to my change?
Thanks for your patience anyway :)
Hi @devbydaniel , I just tried to build on master and the normal build (pnpm run build) as well as the examples app build (pnpm run build:examples-app ) both worked fine. Maybe you reverted back to master but still had the new dependencies in the node_modules folder.
My suggestion would be to revert back to master, then clean the repository with git clean -dxf. This deletes all untracked files in the repository! Afterwards, adapt the dependencies of the material and the dayjs package. Then install dependencies with pnpm install in the repository root. You should not need to call pnpm up because we do not want to generally update all dependencies in this PR.
@lucas-koehler Thanks again for your help, I think / hope I got it right this time!
Hi @devbydaniel , thanks for the update. It seems correct but I'd like that we also make the @mui/material use ^ instead of ~ while we are at it to keep it consistent. Could you please update the @mui/material dependency in the peer and dev dependencies accordingly?
I think, you'll need to do the git clean -dxf and pnpm install again afterwards to update the lock file
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for your contribution :)
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