Moment: Es gibt mehrere Module mit Namen, die sich nur in der Groß-/Kleinschreibung unterscheiden.

Erstellt am 12. Mai 2020  ·  3Kommentare  ·  Quelle: 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

für alle Anwendungen nach dem Upgrade.

"moment": "^2.22.2",

Alle 3 Kommentare

Wenn Sie Ihre node_modules aktualisieren, tritt dieses Verhalten immer noch auf?
Diese Datei wurde umbenannt
https://github.com/moment/moment/commit/92a58a5835da73e131a1a34d651cc78be6d03a5f#diff -540a63bb36c023e0365ce843d13413b1

Ich habe das gleiche Problem, habe versucht, mein node_modules-Verzeichnis zu entfernen und die Deps erneut zu installieren, und es hat funktioniert, ty!

Ja, entferne den Ordner node_modules undgarn/npm install behebt das Problem, danke!

War diese Seite hilfreich?
0 / 5 - 0 Bewertungen