How to clean typescript cache?

Magician picture Magician · Sep 3, 2018 · Viewed 11.1k times · Source

I don't know where to look at, and typescript answer here said that it is not cached

But it clearly cached the files. because this is my import

import definition

And yet, it cannot import the file from old path.

Cannot find module

I have searched for all definition.ts file, and all has been updated

Definition search

I am lost here..

Answer

Laian Braum picture Laian Braum · Jul 22, 2021

If you are using VSCode, you can use CTRL + SHIFT + P to open the command palette and search for Typescript, you should have "Reload TS Server" and "Reload Project", both work well.