Skip to content
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

[core] Add @material-ui/lab as peer dependency #2012

Merged
merged 3 commits into from Jul 3, 2021

Conversation

m4theushw
Copy link
Member

@m4theushw m4theushw commented Jul 2, 2021

Fixes #1878

Noticed while debugging #1993 that demos depending in @material-ui/x-grid-data-generator won't work with MUI v5 because the version of the lab is fixed in v4. This PR makes the lab a peer dependency.

image

Before: https://codesandbox.io/s/material-demo-forked-1vzw6?file=/package.json

After: https://codesandbox.io/s/material-demo-forked-nzqjp?file=/package.json


I'm aware that clicking in any cell to edit crashes the demo. I'll fix this in another PR. The first step was to make them at least run with v5.

image

@m4theushw m4theushw requested a review from a team July 2, 2021 00:34
@m4theushw m4theushw added the core Infrastructure work going on behind the scenes label Jul 2, 2021
@flaviendelangle
Copy link
Member

#1878 (comment)

I think we want to do the same for @material-ui/icons

@m4theushw m4theushw merged commit 1e5ccb2 into mui:master Jul 3, 2021
@m4theushw m4theushw deleted the add-lab-as-peer-dependency branch July 3, 2021 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Infrastructure work going on behind the scenes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@material-ui/x-grid-data-generator error: 'withStyles' is not exported from '@material-ui/core/styles'
2 participants