Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I keep having to rm node_modules/.cache/.eslintcache #11429

Open
caub opened this issue Sep 10, 2021 · 3 comments
Open

I keep having to rm node_modules/.cache/.eslintcache #11429

caub opened this issue Sep 10, 2021 · 3 comments

Comments

@caub
Copy link

caub commented Sep 10, 2021

Somewhat frequently, I save and have some eslint errors, I fix them, save again, but it's still showing the eslint errors in browser and in console

restarting the dev server (react-scripts start) won't help

I have to delete eslint cache running rm node_modules/.cache/.eslintcache and restart the server to get it working again

config:

$ node -v
v16.9.0
$ npm -v
7.21.1
$ npm ls react-scripts
└── [email protected]

using sublime text and ESLint Formatter package to format on save using eslint_d if that matters, but I remember having that with vscode and the standard LSP formatter

@derzwen
Copy link

derzwen commented Dec 1, 2021

Having the same issue from time to time...

@caub
Copy link
Author

caub commented Dec 1, 2021

It's quite annoying, sometimes I just add a space somewhere in a string, save and it works, then undo the dummy change

sometimes it's more broken and have to do the rm node_modules/.cache/.eslintcache

@aztack
Copy link

aztack commented Dec 30, 2021

Is there a way to disable this kind of cache?
I change something in my react code but the page does not update and the code in dev tools does not update.
I have to rm node_modules/.cache and restart.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants