Code Monkey home page Code Monkey logo

Comments (8)

mschorsch avatar mschorsch commented on July 26, 2024 1

We have the same problem with [email protected] and sometimes get the following error (only in production build):

...
Merge error: conflicting capitalizations:
moment/locale/en-SG.js in /tmp/broccoli-14632r7VYmVxi9CXp/out-118-broccoli_persistent_filter_mapper
moment/locale/en-sg.js in /tmp/broccoli-14632r7VYmVxi9CXp/out-118-broccoli_persistent_filter_mapper
Remove one of the files and re-add it with matching capitalization.
...

The problem seems to be moment itself. Since moment@^2.25.0 the file en-SG.js was renamed to en-sg.js.

from ember-moment.

dmaok avatar dmaok commented on July 26, 2024 1

@deanmraz, it is easier with yarn. In your package.json add block

  "resolutions": {
    "moment": "2.24.0"
  }

and then yarn install

from ember-moment.

dmaok avatar dmaok commented on July 26, 2024

@deanmraz I confirm the error with moment@^2.25.0.
Just specify "moment": "2.24.0" for submodules.
instruction for yarn, instruction for npm

from ember-moment.

deanmraz avatar deanmraz commented on July 26, 2024

@dmaok How would you implement that? It looks like npm pulled both versions of moment 2.24.0 & 2.25.0.

from ember-moment.

deanmraz avatar deanmraz commented on July 26, 2024

@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?

from ember-moment.

jrjohnson avatar jrjohnson commented on July 26, 2024

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

from ember-moment.

jasonmit avatar jasonmit commented on July 26, 2024

Fixed in [email protected] - thanks to @jrjohnson

from ember-moment.

deanmraz avatar deanmraz commented on July 26, 2024

@jasonmit confirmed! thanks everyone for the help

from ember-moment.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.