There are multiple modules with names that only differ in casing. This can lead to unexpected....

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:

这里写图片描述
在基于webpack的vue下引用模块一直报这种警告,虽然不影响运行,但真的好烦,这警告大概意思就是说这个模块在其他地方也引用了,因为引用时的名字相同,这可能会造成项目打包上线的时候会出现系统引用错误….
这是npm安装的cookie模块这里写图片描述
引用的时候我们都会let Cookie = require('js-cookie'),然而肯定不止一处会引用,因为Windows不区分大小写,所以引用的几处不要出现名称相同 具体如下:

const Cookie = require('js-cookie');

const Cookie = require('js-Cookie');

是一样的,这样就可以解决因引用相同模块而造成的某种混乱的警告了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值