執行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啦!