张老师您好,我修改了一下组件名称的大小写,然后再import里修改了对应的大小写,Vetur就报错。我查了一下,这好像是 typescript的老bug了,有什么办法能解决吗?
e.g.
HiMan.vue =>Himan.vue // 名称
-----------------------------
import Himan from './components/Himan.vue'
adamcfranco commented on 6 Jul 2018
Error TS1149: File name ‘C:/Project/frontend/scripts/State.ts’ differs from already included file name ‘…/frontend/scripts/State.ts’ only in casing.I’ve triple checked the casing in our references and the actual files
have the correct casing as well. As far as I can tell, this is solely
because the relative path uses incorrect casing, or perhaps it’s just
because of the relative path itself?It compiles just fine on Mac and Linux, but throws this error on
Windows.