Module not found: Can't resolve 'date-fns/_lib/format/longFormatters'
See original GitHub issueHi, I’m using date-fns with material-ui like that : https://material-ui.com/components/pickers/
But this appears :
./node_modules/@date-io/date-fns/build/index.esm.js Module not found: Can't resolve 'date-fns/_lib/format/longFormatters' in '....node_modules\@date-io\date-fns\build'
Issue Analytics
- State:
- Created 3 years ago
- Comments:16 (2 by maintainers)
Top Results From Across the Web
Can't resolve 'date-fns/_lib/format/longFormatters' #1734
Code: import DateFnsUtils from '@date-io/date-fns';
Read more >Module not found: Can't resolve '@date-io/date-fns'
I'm using React Material UI and I get this error : Module not found: Can't resolve '@date-io/date-fns'. Here are the dependencies that I...
Read more >Module not found: Can't resolve '@date-io/date-fns' | bobbyhadz
To solve the error "Module not found: Error: Can't resolve '@date-io/date-fns'", make sure to install the package by opening your terminal in your...
Read more >date-fns - npm
Modern JavaScript date utility library. Latest version: 2.29.3, ... Start using date-fns in your project by running `npm i date-fns`.
Read more >Can't resolve 'date-fns/_lib/format/longFormatters'
Module not found : Can't resolve 'date-fns/_lib/format/longFormatters' · Can't resolve 'date-fns/_lib/format/longFormatters' in '/U.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Take note that two packages need to be installed to make it work:
Run
npm i @date-io/date-fns@1.x date-fns --save
You probably have to install
date-fns
, if it doesn’t help please direct the question to https://github.com/dmtrKovalenko/date-io.