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 read property 'humanize' of undefined #4493
Comments
Can you check if this problem still exists in 2.21.0, and if it does can you show a bit more code for us to reproduce. (I tried the code you provided - with |
@ashsearle I've just upgraded to 2.21.0 error still show up here is my code
|
@ashsearle There is no locale for mn so that I put moment.defineLocale('mn', ... ) instead of updateLocale now it works fine. |
Unfortunately deprecation warning shows up @ashsearle |
Which line of code triggers the deprecation warning? Which warning is it? |
Warning as follows: deprecation warning use moment.update locale |
I'm not convinced you've given the right warning or line of code. I suspect you're actually seeing:
You're trying to configure two locales. One already exists ( You should use If you do that, does it get rid of the deprecation warning? |
@munkhorgil - try upgrading to 2.22.0 - we now support locale Please re-open if you still have problems. |
Using 2.27.0 still issue is there |
When I set locale as mn it produces error if I use updateLocale, On the contrary If I use locale instead of updateLocale there is no error, but gives depreciation warning.
Code as follows
Environment:
Error:
Cannot read property 'humanize' of undefined
The text was updated successfully, but these errors were encountered: