Moment: Ada beberapa modul dengan nama yang hanya berbeda dalam casing.

Dibuat pada 12 Mei 2020  ·  3Komentar  ·  Sumber: 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

untuk semua aplikasi setelah peningkatan.

"moment": "^2.22.2",

Semua 3 komentar

Jika Anda menyegarkan node_modules , apakah Anda masih mendapatkan perilaku ini?
File ini diganti namanya
https://github.com/moment/moment/commit/92a58a5835da73e131a1a34d651cc78be6d03a5f#diff -540a63bb36c023e0365ce843d13413b1

Saya memiliki masalah yang sama, mencoba menghapus direktori node_modules saya dan menginstal deps lagi dan berhasil, ty!

Ya, hapus folder node_modules dan pemasangan benang/npm menyelesaikan masalah, terima kasih!

Apakah halaman ini membantu?
0 / 5 - 0 peringkat