-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[ListItemButton] Missing export from @material-ui/core/index.js #26660
Comments
Thanks for the report. We need to re-export the component from |
Hi, this is my first time contributing. Can I take this? |
Sure, go ahead. If you have any questions feel free to ask. If you're stuck you can always propose an unfinished changed and we'll work through it together. |
Until the PR is merged and released (should be fixed in the next release), anyone who experienced this error can use this as workaround. import ListItemButton from '@material-ui/core/ListItemButton'; |
Hi, I tried to import but it is failing `Failed to compile. ./src/components/MyList.js Part of my package.json
|
This component only exists in v5. |
Try using import ListItemButton from '@mui/material/ListItemButton'; |
Dude... what are you trying to suggest? This bug only appears in And |
still ListItemButton is not found in the material ui version "@material-ui/core": "^4.12.3",.. is the fix available in any other version? |
|
Current Behavior 😯
ListItemButton
is not exported from@material-ui/core/index.js
, i.e.import { ListItemButton } from "@material-ui/core"
will not work.Expected Behavior 🤔
import { ListItemButton } from "@material-ui/core"
should returns no error.Steps to Reproduce 🕹
Steps:
import { ListItemButton } from "@material-ui/core"
Context 🔦
Your Environment 🌎
`npx @material-ui/envinfo`
The text was updated successfully, but these errors were encountered: