Module not found: Can't resolve 'date-fns/_lib/format/longFormatters'

See original GitHub issue

Hi, 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:closed
  • Created 3 years ago
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

26reactions
yogesnsamycommented, Apr 8, 2021

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

19reactions
kossnocorpcommented, May 14, 2020

You probably have to install date-fns, if it doesn’t help please direct the question to https://github.com/dmtrKovalenko/date-io.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found