I was using the Material UI Timepicker
but after updating to MUI 5 it is not working anymore. I updated everything to @next
and @material-ui/core
(version 5.0.0-beta.5) and @material-ui/lab
(version: 5.0.0-alpha.44).
mui Lab was founded to promote societal adoption of “calm technology” – the technology that fits in with natural human behaviors and environment. Designed with users' comfort and happiness in mind, calm interfaces can further bring out the humanness of human life.
If you copy the Timepicker
code from the MUI docs, you also need to install the lab package which contains the adapter code to integrate with date-fns
. See the requirements here. For reference, you can see the package.json file from the live demo.
npm i @mui/lab
I had the same issue. What I did was installing date-fns as well
npm i date-fns
I then stopped the localhost server and restart it again with npm start (I was using react)
npm start
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