Clear TypeScript cache
Sometimes TypeScript can cache some things that you don't want it to keep cached. For example, an old lower case filename that doesn't exist anymore.
If this is the case, just restart your TypeScript server. If you're using Cursor or Visual Studio, just open up the command palette (Cmd + Shift + P
on macOS or Ctrl + Shift + P
on Windows/Linux) and type Restart TS Server
.