Could not resolve "./components/selectTag.vue" from "src/views/portal/products.vue"
file: /home/workspace/portal/src/views/portal/products.vue
error during build:
RollupError: Could not resolve "./components/selectTag.vue" from "src/views/portal/products.vue"
? 從報錯信息就能看出是找不到引用的文件,于是找到對應的文件查看,發(fā)現(xiàn)是大小寫問題不一致導致的。真實引用的文件名是SelectTag.vue,而實際代碼是寫著selectTag.vue
解決方法:修改代碼,引用的文件必須是區(qū)分大小寫,同時約束好程序員的代碼規(guī)范。
原因:linux區(qū)分大小寫,window不區(qū)分。