Moment: There are multiple modules with names that only differ in casing.

Created on 12 May 2020  ·  3Comments  ·  Source: moment/moment

WARNING in ./node_modules/moment/locale/en-SG.js
There are multiple modules with names that only differ in casing.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Use equal casing. Compare these module identifiers:
* /var/www/hint_ui/node_modules/moment/locale/en-SG.js
    Used by 2 module(s), i. e.
    /var/www/hint_ui/node_modules/moment/locale sync /^\.\/.*$/
* /var/www/hint_ui/node_modules/moment/locale/en-sg.js
    Used by 2 module(s), i. e.
    /var/www/hint_ui/node_modules/moment/locale sync /^\.\/.*$/
 @ ./node_modules/moment/locale/en-SG.js
 @ ./node_modules/moment/locale sync ^\.\/.*$
 @ ./node_modules/moment/moment.js
 @ ./node_modules/source-map-loader!./node_modules/vue-loader/lib??vue-loader-options!./src/components/admin/pages/episodes/episode_edit.vue?vue&type=script&lang=js&
 @ ./src/components/admin/pages/episodes/episode_edit.vue?vue&type=script&lang=js&
 @ ./src/components/admin/pages/episodes/episode_edit.vue
 @ ./src/router/admin.js
 @ ./src/router/index.js
 @ ./src/app.js
 @ multi ./src/app.js

for all applications after the upgrade.

"moment": "^2.22.2",

All 3 comments

If you refresh your node_modules, do you still get this behavior?
This file was renamed
https://github.com/moment/moment/commit/92a58a5835da73e131a1a34d651cc78be6d03a5f#diff-540a63bb36c023e0365ce843d13413b1

I have the same problem, tried removing my node_modules dir and install the deps again and it worked, ty!

Yes, remove folder node_modules and yarn/npm install resolves the issue, thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RobinvanderVliet picture RobinvanderVliet  ·  3Comments

paulyoung picture paulyoung  ·  3Comments

tanepiper picture tanepiper  ·  3Comments

ninigix picture ninigix  ·  3Comments

IbraheemAlSaady picture IbraheemAlSaady  ·  3Comments