Casing of ./types does not match the underlying filesystem

Viewed 5749

So i had a bit weird warning from eslint

warning on vscode hints warning on vscode terminal

'./types' is a flow type file. I think eslint read checkbox as a lowercase while in reality it is Checkbox (capital C).

I try git mv casesensitive tmp && git mv tmp CaseSensitive as discussed here: In a Git repository, how to properly rename a directory? but it still doesnt work. because in the past that folder is lowercase (checkbox) and renamed to Uppercase (Checkbox) but it was work of other developer, i don't know what happen in his machine until this warning come in my machine. Maybe (another assumption) it was happen because of bad config of webpack/babel, im not sure.

1 Answers

Got the same issue, all I did was restart my editor (vscode). Hope this works out for you too.

also, try copying the content of the file, deleting the file, creating a new one, pasting your content, and importing accordingly

This kind of error can be frustrating.

but as it goes, if something doesn't work, and you have no clue, try switching it off and on again

Related