Moment: هناك وحدات متعددة بأسماء تختلف فقط في الغلاف.

تم إنشاؤها على ١٢ مايو ٢٠٢٠  ·  3تعليقات  ·  مصدر: 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

لجميع التطبيقات بعد الترقية.

"moment": "^2.22.2",

ال 3 كومينتر

إذا قمت بتحديث node_modules ، فهل ما زلت تواجه هذا السلوك؟
تمت إعادة تسمية هذا الملف
https://github.com/moment/moment/commit/92a58a5835da73e131a1a34d651cc78be6d03a5f#diff -540a63bb36c023e0365ce843d13413b1

لدي نفس المشكلة ، حاولت إزالة بلدي node_modules dir وتثبيت deps مرة أخرى وعمل ، تاي!

نعم ، قم بإزالة مجلد node_modules و yarn / npm install يحل المشكلة ، شكرًا!

هل كانت هذه الصفحة مفيدة؟
0 / 5 - 0 التقييمات

القضايا ذات الصلة

M-Zuber picture M-Zuber  ·  3تعليقات

BCup picture BCup  ·  3تعليقات

tanepiper picture tanepiper  ·  3تعليقات

paulyoung picture paulyoung  ·  3تعليقات

danieljsinclair picture danieljsinclair  ·  3تعليقات