Solution 1 (worked for me)
The issue occurred when I quickly renamed a file from someFile.ts to SomeFile.ts. Restart your IDE (Visual Studio Code) and the warning will go away.
Solution 2
If you created your file in uppercase and import it in lowercase, the problem still occurs, so check the spelling of the file first.