Skip to content
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

parseDate - moment.locale is not a function when bundling with webpack #229

Closed
tomoakley opened this issue Oct 20, 2017 · 1 comment
Closed

Comments

@tomoakley
Copy link

Having an issue while using parseDate - it reports an error from moment, TypeError: moment.locale is not a function. (In 'moment.locale()', 'moment.locale' is undefined). I believe the issue is the same as this - I am using webpack to build my bundle - and can be fixed my updating moment.js to 2.19.1.

@tomoakley tomoakley changed the title parseDate - moment.locale is not a function parseDate - moment.locale is not a function when bundling with webpack Oct 20, 2017
@wanasit
Copy link
Owner

wanasit commented Nov 4, 2017

Thanks for letting me know. I actually able to solve this by rolling back and lock down the moment.js at 2.10.3. I'll keep using the 2.10.3 because I haven't tested the recent version of moment.js and we don't need those features anyway.

bcc64a3

@wanasit wanasit closed this as completed Nov 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants