There are multiple modules with names that only differ in casing--有多個模塊的名稱僅在大小寫上有所不同

問題:
There are multiple modules with names that only differ in casing
在這裏插入圖片描述

解決:
這通常是微小錯字的結果【可能是大小寫有所不同】。

上面問題中Config.js文件的目錄結構如下:
在這裏插入圖片描述
例如A組件需要引入Config.js,結果錯將Config寫成了小寫的config就會導致上面的警告⚠️!!!

//A組件:
//@指向src跟目錄;
 import config from '@/constants/config.js'
//實際應改爲【大小寫需注意。。。】
 import config from '@/constants/Config.js'

如果出現這樣的警告,大家找找是不是自己引入的組件大小寫寫反了。。。

最後附上鍊接:
https://stackoverflow.com/questions/47534267/webpack-there-are-multiple-modules-with-names-that-only-differ-in-casing-but

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章