When I'm running 'npm start', I'm getting the following error:
...
...
Watchpack Error (watcher): Error: ENOSPC: System limit for number of file watchers reached, watch '/my_project/node_modules/@babel/runtime/helpers'
/my_project/node_modules/react-scripts/scripts/start.js:19
throw err;
^
Error: ENOSPC: System limit for number of file watchers reached, watch '/my_project/src'
...
...
I'm using corporate machines, so I can't increase the limit for the number of watchers.
I read online that I should go to 'node_modules/react-scripts/config/webpackDebServer.config.js' and make sure to ignore the node_modules dir.
I tried playing with it the whole day, but still every attempt to run the react app ends up with the same error message.
Any idea how I can overcome this issue? how to make webpack ignore the node_modules?
Thanks!