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

UnhandledPromiseRejectionWarning: Error: ENOSPC: System limit for number of file watchers reached, watch #1699

Closed
shivarajnaidu opened this issue Nov 11, 2020 · 3 comments

Comments

@shivarajnaidu
Copy link

Getting Following error when i run the yarn dev

image

@peterbe
Copy link
Contributor

peterbe commented Nov 11, 2020

@shivarajnaidu There is a way to increase the system limit and we plan to explain/mention it in the README.

@fiji-flo Do you think it would be possible to trigger something like this:

try {
  startWatcher();
} catch(err) {
  if (err.toString().include("System limit for number of file watchers reached") {
    console.log("See this Troubleshooting tip about this error....")
  }
  throw err;
}

@Ryuno-Ki
Copy link

Duplicate of #835

@peterbe
Copy link
Contributor

peterbe commented Feb 12, 2021

We don't use the watcher anymore for content. But you can still run into this error in Linux because of all the various source code files that react-scripts might be keeping an eye on. So we kept a blurb about it in the "Troubleshooting" section.

@peterbe peterbe closed this as completed Feb 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants