Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vite includes module that does not exist - how to clear cache?

Tags:

vite

I have a weird situation where I have removed a module from my project, yet Vite happily runs dev as if it was installed.

How do I clear the cache?

like image 719
Steve Bennett Avatar asked Jan 25 '26 06:01

Steve Bennett


1 Answers

I discovered while writing this that you can do:

vite --force

which does what I want.

like image 155
Steve Bennett Avatar answered Jan 29 '26 13:01

Steve Bennett



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!