Moment: 有多个模块的名称只是大小写不同。

创建于 2020-05-12  ·  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 目录并再次安装 deps 并且它起作用了,ty!

是的,删除文件夹 node_modules 和 yarn/npm install 解决了这个问题,谢谢!

此页面是否有帮助?
0 / 5 - 0 等级