-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
gatsby develop causes MaxListenersExceededWarning resource drain #5510
Comments
I have managed to whittle my whole project down to almost nothing, just an index page and a basic I have been editing the pages index with just one letter and saving and undoing. https://github.com/deltaskelta/gatsby-issue-5510 |
I was able to reproduce, then I tried changing this line:
to
and it seems to fix the problem. Perhaps because both Gatsby and its plugin recognize there’s been a change to one of its files (I was editing I recommend putting your data files out of |
hmm nice find... :) If that is the case how would I handle multiple pages that have markdown files? I have eliminated the rest for the example, but I have many more dirs than just |
I missed the last line of your comment, I guess I can pull all of them out and put them in dirs corresponding to their page. |
closing for now, will reopen if it reappears when I try to test the solution. Thanks |
FWIW, the warning still occurs, but I do not get the system drain that happened before |
Not sure if this helps, but I also removed the line:
Because I thought that could affect Gatsby’s graphql query. Maybe you can differentiate the one from apollo by aliasing the destructured import?
|
another good catch. I'm using an import tool so it must have just imported from apollo without me noticing. I'll change it to gatsby's and see if it disappears |
Found the error while executing the
It looks like the above errors don't abort the process. However, it still makes me feel upset. |
…bout potential solution at gatsbyjs/gatsby#5510
Same here, anyone has solved the issue? @ryanditjia Do you have maybe explanation what is wrong with having data in |
Description
when I run
gatsby develop
, after editing a few files and having it recompile I eventually get the error.Steps to reproduce
On my machine in my project, I just run develop and continue editing files. I have not been able to reproduce in a sample project yet. I have used a tool to get a stack trace out of the warning and it lists this
Expected result
the standard behavior
Actual result
Computer resources are all maxed out and my machine becomes very laggy and
Environment
npm list gatsby
): [email protected]gatsby --version
): 1.9.261File contents (if changed)
gatsby-config.js
: N/Apackage.json
: N/Agatsby-node.js
: N/Agatsby-browser.js
: N/Agatsby-ssr.js
: N/AThe text was updated successfully, but these errors were encountered: