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刪除。



猜您在找 There are multiple modules with names that only differ in casing. 項目警告: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 modul There are multiple modules with names that only differ in casing. 問題的一種解決方法 Vue2報錯Already included file name 'xxx' differs from file name 'xxx' only in casing的解決方法 在vue項目出現These relative modules were not found: VUE項目啟動報錯: core-js/modules/. … vue開發的項目中遇到的警告,報錯,配置項目文件等合集(長期更新) Hint: make sure your test modules/packages have valid Python names. Pytest報錯 vue 項目啟動報錯:Cannot assign to read only property 'exports' of object '#' [WDS] Warnings while compiling. vue 項目運行控制台輸出太多警告信息
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM