I'm trying to use the material-ui/lab date picker, however I'm getting this error! I have updated my material-ui version using npm install @material-ui/core@latest
and it worked fine. However, I lost the ability to use createMuiTheme
& MuiThemeProvider
.
Maybe it'll be helpful for someone. For me fix of that issue was to change the indirect import to direct one:
so this triggered the error:
import { Alert } from '@material-ui/lab';
this works fine:
import Alert from '@material-ui/lab/Alert';
You should update your package.json with following:
"@material-ui/lab": "4.0.0-alpha.57", "@material-ui/pickers": "3.2.10",
I had the same problem with Skeleton using version @material-ui/lab": "4.0.0-alpha.60 but changing it to version @material-ui/lab": "4.0.0-alpha.57 fixed it for me ... guess they broke it again :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With