Module not found: Error: Can't resolve './locale' in '...node_modules/moment/src/lib/locale'
See original GitHub issueHi,
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:
- Created 3 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top 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 >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 FreeTop 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
Top GitHub Comments
Problem on moment v2.25 https://github.com/moment/moment/issues/5501 https://github.com/moment/moment/issues/5500
Resolve on v1.6.1