vue項目警告There are multiple modules with names that only differ in casing


執行npm run dev后出現了警告提示:

warning  in ./src/components/Public/yearSelectCell.vue

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:      //使用唯一的寫法,對比下面這些模塊的標識符:
* F:\路徑。。。。。。

問題在於大小寫沒有區分:

import yearSelectCell from "@/components/public/yearSelectCell" //年份選擇

在linux下是嚴格區分大小寫,而windows不區分。所以上面問題導致在服務器上打包失敗,而修改過來后就ok啦!

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM