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

464
Views
MUI : Module not found "Module not found: Error: Can't resolve 'moment' "

Getting multiple errors of this sort, while trying to use date-picker from mui-x.

Module not found: Error: Can't resolve 'moment'

Can't resolve '@mui/x-date-pickers/LocalizationProvider'

Module not found: Error: Can't resolve '../internals/hooks/useUtils'`

and many more. I have done npm install @mui/x-date-pickers

here is the usage:

<LocalizationProvider dateAdapter={AdapterMoment}>
      <DatePicker
        name="deadline"
        label="Deadline"
        renderInput={(params) => <TextField {...params} />}
      />
</LocalizationProvider>

What is going wrong and how do i fix this issue?

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Seems like a peer dependency needed. npm install moment --save or yarn add moment will do

about 4 years ago · Juan Pablo Isaza Report

0

You need to install moment hs module, please run

npm install moment

It should solve the problem. Also make sure to import them in the component where you are trying to use it.

about 4 years ago · Juan Pablo Isaza 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!