-
-
Notifications
You must be signed in to change notification settings - Fork 122
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
Using ember-moment in Ember 3.18 fails to produce production build #328
Comments
We have the same problem with [email protected] and sometimes get the following error (only in production build):
The problem seems to be |
@deanmraz I confirm the error with moment@^2.25.0. |
@dmaok How would you implement that? It looks like npm pulled both versions of moment |
@deanmraz, it is easier with yarn. In your package.json add block
and then |
@dmaok that worked, thank you! This is a good short term fix, but what is the ideal solution? Does this need to be fixed in this repo or the actual moment repo? |
According to terser/terser#684 this is a moment issue though there isn't a specific ticket there yet https://github.com/moment/moment/issues |
Fixed in [email protected] - thanks to @jrjohnson |
@jasonmit confirmed! thanks everyone for the help |
Issue
Cannot create production builds. Fails during uglify.
Steps
npm i -g ember-cli && ember new ember-moment-test
cd ember-moment-test && ember install ember-moment
ember build --environment=production
Error
The text was updated successfully, but these errors were encountered: