mui / material-ui

Material UI: Comprehensive React component library that implements Google's Material Design. Free forever.
https://mui.com/material-ui/
MIT License
93.94k stars 32.27k forks source link

@mui/lab LoadingButton error in latest release #40192

Closed GilliganL closed 11 months ago

GilliganL commented 11 months ago

Duplicates

Latest version

Steps to reproduce 🕹

Steps: Import and use LoadingButton

ERROR in ./node_modules/@mui/lab/LoadingButton/LoadingButton.js 116:40-58 export 'ButtonGroupContext' (imported as 'ButtonGroupContext') was not found in '@mui/material/ButtonGroup' (possible exports: buttonGroupClasses, default, getButtonGroupUtilityClass)

Version 5.0.0-alpha.155 does not have this error.

Current behavior 😯

This error pops up when version 5.0.0-alpha.156 is installed

ERROR in ./node_modules/@mui/lab/LoadingButton/LoadingButton.js 116:40-58 export 'ButtonGroupContext' (imported as 'ButtonGroupContext') was not found in '@mui/material/ButtonGroup' (possible exports: buttonGroupClasses, default, getButtonGroupUtilityClass)

Expected behavior 🤔

No error

Context 🔦

Use the LoadingButton component.

Your environment 🌎

npx @mui/envinfo ``` Don't forget to mention which browser you used. Output from `npx @mui/envinfo` goes here. ```
lhilgert9 commented 11 months ago

@GilliganL The export for the ButtonGroupContext in @mui/material/ButtonGroup was introduced in version 5.15.0. Check if you have the latest version of @mui/material and then try again.

GilliganL commented 11 months ago

@lhilgert9 That did it, sorry about that!