运行 vue 项目时,警告”多个模块的名称只是大小写不同“
warning in ./node_modules/Vant/es/utils/validate/number.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:
* D:\SYGT_Mey\zcmu_appointment\node_modules\Vant\es\utils\validate\number.js
Used by 5 module(s), i. e.
D:\SYGT_Mey\zcmu_appointment\node_modules\Vant\es\datetime-picker\utils.js
* D:\SYGT_Mey\zcmu_appointment\node_modules\vant\es\utils\validate\number.js
Used by 5 module(s), i. e.
D:\SYGT_Mey\zcmu_appointment\node_modules\vant\es\stepper\index.js
warning in ./node_modules/Vant/es/utils/validate/system.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:
* D:\SYGT_Mey\zcmu_appointment\node_modules\Vant\es\utils\validate\system.js
Used by 2 module(s), i. e.
D:\SYGT_Mey\zcmu_appointment\node_modules\Vant\es\address-edit\Detail.js
* D:\SYGT_Mey\zcmu_appointment\node_modules\vant\es\utils\validate\system.js
Used by 2 module(s), i. e.
D:\SYGT_Mey\zcmu_appointment\node_modules\vant\es\address-edit\Detail.js
warning in ./node_modules/Vant/es/utils/vnodes.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:
* D:\SYGT_Mey\zcmu_appointment\node_modules\Vant\es\utils\vnodes.js
Used by 2 module(s), i. e.
D:\SYGT_Mey\zcmu_appointment\node_modules\Vant\es\mixins\relation.js
* D:\SYGT_Mey\zcmu_appointment\node_modules\vant\es\utils\vnodes.js
Used by 2 module(s), i. e.
D:\SYGT_Mey\zcmu_appointment\node_modules\vant\es\mixins\relation.js
警告代码是这样的,换了一个电脑,重新安装环境然后运行就出现这种警告了
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
记录,npm 中运行项目,警告:There are multiple modules with names that only differ in casing.
确保你引用的模块大小写保持一致,如
Vue
和vue
,统一使用Vue
https://stackoverflow.com/questions/47534267/webpack-there-are-multiple-modules-with-names-that-only-differ-in-casing-but