Open Thomasan1999 opened 2 years ago
@Thomasan1999 this is a known issue, the project seems unmaintained.
Just disable cache eslintPlugin({ cache: false });
Me and my team where having the same issues, eslintPlugin({ cache: false });
fixed the problem, thanks @dannysmc95 for adding that as a solution! 🙂
Having same issue even with { cache: false }
. If I set failOnError: false
, it starts working with hot reload, but vite will not show eslint errors as overlay in browser
cache: false
doesn't help in my case either. On top of it, it requires a restart of the dev mode. I also use storybook which takes some time to restart even when working on a single component. The cache invalidation occures mainly, when I switch branches in my repository.
When I have a linting error in my file, sometimes the error doesn't disappear from console even after it has been fixed in the actual file. Even if I change the file afterwards, the error is still there (even removing all of file's content doesn't help).
vite
orvite --force
don't work and only deletingnode_modules\.vite
refreshes the cache. After addingcache: false
to the plugin options, the problem has disappeared.vite.config.ts
:Used packages: