iconfont-cli / taro-iconfont-cli

在Taro框架中使用iconfont图标,支持多端,支持多色彩,不依赖字体。
MIT License
355 stars 49 forks source link

There are multiple modules with names that only differ in casing. #21

Open dxiuxiu opened 4 years ago

dxiuxiu commented 4 years ago

完整的 error 信息

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:\code\多端适配\200416\B\kuxueyuan-cross-platform\node_modules\@tarojs\webpack-runner\node_modules\babel-loader\lib\index.js??ref--11-0!D:\code\多端适配\200416\B\kuxueyuan-cross-platform\.temp\components\iconfont\h5\IconEKejian.js
    Used by 2 module(s), i. e.
    D:\code\多端适配\200416\B\kuxueyuan-cross-platform\node_modules\@tarojs\webpack-runner\node_modules\babel-loader\lib\index.js??ref--11-0!D:\code\多端适配\200416\B\kuxueyuan-cross-platform\.temp\components\iconfont\h5\index.js
* D:\code\多端适配\200416\B\kuxueyuan-cross-platform\node_modules\@tarojs\webpack-runner\node_modules\babel-loader\lib\index.js??ref--11-0!D:\code\多端适配\200416\B\kuxueyuan-cross-platform\.temp\components\iconfont\h5\IconEkejian.js
    Used by 2 module(s), i. e.
    D:\code\多端适配\200416\B\kuxueyuan-cross-platform\node_modules\@tarojs\webpack-runner\node_modules\babel-loader\lib\index.js??ref--11-0!D:\code\多端适配\200416\B\kuxueyuan-cross-platform\.temp\components\iconfont\h5\index.js
fwh1990 commented 4 years ago

能提供一下你的symbol_url吗?以及taro版本,taro-iconfont-cli版本。

启动所有平台都会报这个错还是个别平台

dxiuxiu commented 4 years ago

我的 symbol_url //at.alicdn.com/t/font_903536_5rlem3d5zx6.js 我尝试过 dev:tt/weapp/alipay/h5 这个错误只有 h5 时会出现

dxiuxiu commented 4 years ago

包版本: "@tarojs/taro": "2.1.5", "taro-iconfont-cli": "^2.0.0"

fwh1990 commented 4 years ago

找到问题,你的icon里有 icon-Ekejianicon-EKejian 两个图标,他们唯一的区别是 k的大小写。本身没问题,只是一个警告,即在某些大小写不敏感的系统下,这两个图标文件会有冲突。

解决方案是删除其中一个,或者重命名

dxiuxiu commented 4 years ago

嗯嗯,好的,感谢