問題:
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'
如果出現這樣的警告,大家找找是不是自己引入的組件大小寫寫反了。。。