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

[lab] Fix missing dependency on unstyled #26937

Merged
merged 1 commit into from
Jun 24, 2021
Merged

Conversation

fishyFrogFace
Copy link
Contributor

@fishyFrogFace fishyFrogFace commented Jun 24, 2021

material-ui-lab did not list @material-ui/unstyled as a dependency.
This causes trouble with yarn 2, build fails with:
material-ui/lab tried to access @material-ui/unstyled, but it isn't declared in its dependencies, this makes the require call ambiguous and unsound

One example: https://github.com/mui-org/material-ui/blob/dd02ee9ff073afdd31b57d6ea6faca412ac338c3/packages/material-ui-lab/src/CalendarPicker/CalendarPicker.tsx#L5-L9

@mui-pr-bot
Copy link

mui-pr-bot commented Jun 24, 2021

No bundle size changes (experimental)

Generated by 🚫 dangerJS against d6fb647

@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work package: lab Specific to @mui/lab labels Jun 24, 2021
@oliviertassinari oliviertassinari changed the title Update package.json [lab] Fix missing dependency on unstyled Jun 24, 2021
@oliviertassinari
Copy link
Member

It looks very similar to #26433

@oliviertassinari oliviertassinari merged commit 46ebf5a into mui:next Jun 24, 2021
@oliviertassinari
Copy link
Member

@fishyFrogFace It's a great first pull request on Material-UI 👌🏻. Thank you for working on it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work package: lab Specific to @mui/lab
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants