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
And yet, it cannot import the file from old path.
I have searched for all definition.ts
file, and all has been updated
I am lost here..
@tl;dr Usually when this sort of thing happens to me, deleting the build/lib/dist directory or whatever you call it, solves the issues.
This usually happens to me when I have something like:
file.ts
and,having previously built something, rename it to a directory such as:
file/index.ts
Since renaming files wont delete them in the ./lib directory(or whatever you call it in your project), unless you delete said directory and re-build, you will have entries:
file.ts
file/index.ts
Which (at least for me) often leads to such type of errors.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With