-
Notifications
You must be signed in to change notification settings - Fork 760
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
yarn start
/ npm start
/ reac-static start
errors with 'Error: watch /home/mrh/src/safe-sites/safe-dweb-blog/static.config.js ENOSPC'
#952
Comments
If you post a link to your repo, we may be able to debug this, but I think I would classify this as extreme edge case. As long as you were able to get around it for now, let's plan on debugging it soon and going forward with your fix. The amount of files to be watched should not be large at all, not even hundreds (for a large site). Marking this with enhancement, given it's very edge case. |
Creating a repo shouldn't help I think, as all I did was `react-static create` and choose the 'basic' template. Obvs that shouldn't create many files, so either it is inadvertently watching files elsewhere (eg starting at a parent directory) or the limit was too small in my system. I suspect the former, but don't know as I haven't used hot reloading much on this machine.
I agree it's an edge case, and posted the issue mainly to help others find the workaround if it happens again.
--
Helping decentralise the Internet with:
SAFE Network - Secure Access For Everyone, https://safenetwork.tech
Project Solid - Tim Berners-Lee's vision of the Web, https://solid.mit.edu
|
Would you be open to editing some source files in your local React Static to help us nail down the issue? |
Sure, but first I will compare what I have with the basic template on github because I wonder if this is related to the warnings I reported from `yarn build` about the size of some output being bigger than recommended. If there were extra files there for some reason, maybe that explains both issues. Can't do that just now, but will reply here or on spectrum when I've had a look.
|
Sounds good.
…On Jan 8 2019, at 11:46 am, Mark Hughes (happybeing) ***@***.***> wrote:
Sure, but first I will compare what I have with the basic template on github because I wonder if this is related to the warnings I reported from `yarn build` about the size of some output being bigger than recommended. If there were extra files there for some reason, maybe that explains both issues. Can't do that just now, but will reply here or on spectrum when I've had a look.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub (#952 (comment)), or mute the thread (https://github.com/notifications/unsubscribe-auth/AFUmCRxodpWjANTgwEADc899aryAYeseks5vBOd_gaJpZM4Z19z3).
|
Hmm, well to update:
So the issue is probably to do with my system state. Maybe Atom active project files, maybe not, but until I can reproduce it I guess we should wait and then I'll revisit. |
You can just create your app outside of atom with terminal and see if atom is indeed the culprit here. |
|
I can confirm the cause in my case is having lots of files under projects open in Atom. This must have pushed the Undoing that setting didn't take effect until a system restart, so I was only able to verify this today. |
Are you reporting a bug?
Kind of
Environment
Steps to Reproduce the problem
create a new project with
react-static create
and use the 'basic' templatecd into the project and type
yarn start
, ornpm start
, orreact-static start
. Note thatyarn build
andyarn serve
behave as expected. Result foryarn start
is as follows:Expected Behavior
Solution
The problem appears to be due to the number of files being watched hitting a limit, which can be increased by the following command:
After running that,
yarn start
should behave as expected.I don't know why I hit this while others presumably have not yet, as @tannerlinsley hasn't seen this before. I found the solution in this issue comment.
The text was updated successfully, but these errors were encountered: