New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot resolve 'file' or 'directory' ./locale #3872
Comments
Hmm, yeah, that path clearly looks wrong; that tilda shouldn't be there. I don't use Webpack, so I'm not able to help, but in order to assist whoever does, can you share enough setup steps to help clarify whether this is a configuration issue or something wrong in the build? |
This seems related (but not exactly the same as) #2979 |
@ddjxie Did you find a fix for this that didn't require altering the files in |
switching back to moment 2.18.1 also fixes the issue |
@kashalkar's answer is the real solution here. Go back a version and wait for the devs to finally fix this single character typo in the next release :) |
This is a bug reported against 2.18.1. 2.19.0 was released two days ago, so you must be experiencing something else. |
I am getting this with 2.19.0, but not with 2.18.1. |
@icambron I had this on one system with |
I tried with 2.18.1, 2.19.1, 2.19.2 but Module not found: Error: Can't resolve './locale' in |
The same error, I run the version |
Same here, using 2.18.1 not helped. Any suggestions? |
Maybe this solution can be help. #2979 |
I tryed but no
*Balogh Ferenc Levente*
*Egyéni Vállalkozó*
*+36 30 472 5776*
*baloghferenclevente@gmail.com <baloghferenclevente@gmail.com>*
*https://www.pcv.hu <https://www.pcv.hu/>*
2017-12-18 16:59 GMT+01:00 Francis Rodrigues <notifications@github.com>:
… Maybe this solution can be help. #2979
<#2979>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3872 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACkd3eemnv7qW_Ci92J8TJPKOPZVgMkrks5tBovigaJpZM4MsGk1>
.
|
This appears to be the same issue as #4216 and can probably be closed in favor of that one (since it has a much more exhaustive history to it) |
I'm not sure this is a issue but how moment lib is construct, if you need to import in angular/typescript project you need to it like that |
Had this problem in react native for web, managed to get around it by importing moment like this. import moment from 'moment';
import 'moment/min/locales'; Fixed the web pack warnings for me and still works, other solutions didn't work in my case. |
Description of the Issue and Steps to Reproduce:
Node is unable to load moment's locales using Webpack because it cannot find the directory.
Error
Two temporary fixes that can resolve the issue locally (choose one)
to
Environment:
Moment 2.18.1
Kubuntu 14.04 LTS 64-bit
Node.js 4.8.0 Argon LTS
Webpack 1.12.12
The text was updated successfully, but these errors were encountered: