question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Module not found: Error: Can't resolve './locale' in '...node_modules/moment/src/lib/locale'

See original GitHub issue

Hi,

I have never had that warning before, but at some point (I am not sure which package of the ones I am using was updated) I started to get this error:

WARN  in ./node_modules/moment/src/lib/locale/locales.js

Module not found: Error: Can't resolve './locale' in '...node_modules/moment/src/lib/locale'

The only moment locale code I use is:

methods: {
     formatDate(date) {
        return this.$moment(date).locale('fr').format('DD MMMM YYYY');
      }
}

Any help on that please? Thanks

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

0reactions
ricardogobbosouzacommented, May 9, 2020

Resolve on v1.6.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

10 - Stack Overflow
moment/src/lib/locale /locales.js Module not found: Error: Can't resolve './locale' in 'C:\myproject\node_modules\moment\src\lib\locale' @ .
Read more >
Issues - GitHub
Output some errors on console. WARNING in ./node_modules/moment/src/lib/locale/locales.js Module not found: Error: Can't resolve '.
Read more >
Module not found: Can't resolve 'moment' error | bobbyhadz
To solve the error "Module not found: Error: Can't resolve 'moment'", make sure to install the moment package by opening your terminal in...
Read more >
moment/moment - Gitter
moment/src/lib/locale /locales.js. Module not found: Error: Can't resolve './locale' in 'app/node_modules/moment/src/lib/locale' Can help me please ?
Read more >
Unnecessary Require Locale - Flummoxed by IT
js Module not found: Error: Can't resolve './locale'. Have you been using moment.js and see this error in your browser console? ./node_modules/ ...
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