2

I had a file called FooBar.ts and decided to rename it to fooBar.ts but now VS Code keeps referencing the old file. I had to disable forceConsistentCasingInFileNames from tsconfig.json othewise it would keep thinking there were two files with only different casing, but even then, when trying to add the import automatically, VS Code still references the old file.

I tried cleaning it's cache but still getting the same error. Is it something I'm doing wrong or some sort of config I'm missing?

1 Answer 1

1

I tried cleaning it's cache but still getting the same error. Is it something I'm doing wrong or some sort of config I'm missing?

Make sure the old file does not exist and then just restart vscode 🌹

More

You might need to name file differently intermediately e.g. Foo -> foos -> foo.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.