I have the same error as this answer, except instead of it just occurring in one file it is occurring in many; once I fix it for one file, another just pops up with the same error. I've seen this answer but whenever I run react-scripts start
a node_modules folder is created in my src, so that solution isn't viable.
It would be too time consuming to have to fix every file that has this error every time I compile, so how can I get rid of this error? It seems to just be an eslint issue.
eslint --fix
from the command lineeslint --fix node_modules
but thank you that fixed it, feel free to make an answer and I can mark it as acceptedeslint --fix /path/to/problem/folder
, but i did not know node_modules was the problem folder. Instead you should add node_modules to eslint ignore list