I am stuck with TypeScript error:
Failed to compile.
undefined
TypeScript error in undefined(undefined,undefined):
File name '/path/to/file/MyFileName.types.tsx' differs from already included file name '/path/to/file/myFileName.types.tsx' only in casing. TS1149
Spot the difference in first letter between myFileName
and MyFileName
. I have not idea how this happened and I don't know how to fix it. I have never seen this error before.
I am using TypeScript Version 3.5.3. If someone can at least point me into direction what to do, it would be super helpful.
Oh crap. There was a lowercased import somewhere in my code:
import { TSomething } from './myFileName.types'
while real file name was uppercased:
MyFileName.types.tsx
I still don't know why TypeScript compiler didn't tell me where was that.