Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

503
Views
material ui lab date picker, Can't resolve '@material-ui/lab/AdapterDateFns'

Can't resolve '@material-ui/lab/AdapterDateFns'

Can't resolve '@material-ui/lab/DateTimePicker'

Can't resolve '@material-ui/lab/LocalizationProvider'

I am getting these errors even after having installed @material-ui/lab

over 4 years ago · Santiago Trujillo
4 answers
Answer question

0

I have a working codesandbox here: https://codesandbox.io/s/youthful-wave-8xjy4

Make sure both @material-ui/core and @material-ui/lab are at version "5.0.0-alpha.24" or above as I ran into the same import errors as you when following the guide at: https://next.material-ui.com/guides/pickers-migration/

// package.json
{
  "dependencies": {
    "@emotion/react": "11.1.5",
    "@emotion/styled": "11.1.5",
    "@material-ui/core": "5.0.0-alpha.24",
    "@material-ui/lab": "5.0.0-alpha.24",
    "date-fns": "2.17.0",
    "react": "17.0.1",
    "react-dom": "17.0.1",
    "react-scripts": "4.0.0"
  },
}
over 4 years ago · Santiago Trujillo Report

0

Try running npm install @material-ui/core@next and npm install @material-ui/lab@next

This should move you to version 5.

If the need arises, delete the node_modules folder and run npm install.

Now if you look into the lab folder in node_modules/@material-ui, you will see the

over 4 years ago · Santiago Trujillo Report

0

Make sure that you installed a date management library. I think that @material-ui/lab/AdapterDateFns will be supported with the date-fns library.

date-fns installation

I read it at mui documentation for React Date Picker.

over 4 years ago · Santiago Trujillo Report

0

this works for me very well

npm install @mui/lab
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!