-
Notifications
You must be signed in to change notification settings - Fork 23
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
All of a sudden receiving heap limit errors in node #20
Comments
What version of groq-js are you using? We recently switched to TypeScript. Maybe something changed? |
Oh, I see you mentioned it here. Hmm. v0.1.4 and v0.1.7 would be the most important ones to try out. |
Yes, tried both. What is also weird is I have another local gatsby site using the same functionality and it is still working. It's on v0.1.5 and I also tried that with this site. The only differences I can think of is this problem site is using styled components with a babel macro for tailwind css, but I can't see why any of that would be related. I've tried troubleshooting by disabling plugins, reinstalling all packages a bunch of times, etc. etc. I took a look at the code and saw that the
Could this be resulting in an infinite loop for whatever reason? Again, it seems to be occurring with any dataset so I don't think that's the case. Will continue digging. |
Ah actually turns out 0.1.5 and below actually do work with this site. So the problem actually is with 0.1.7. Is there any way I can help debug? |
We've change things a bit internally. Could you try v0.2.0 and see if that's better? |
Very strange issue here. I've been using
groq-js
to run queries during Gatsby's build process and so far everything has worked fine. Then all of a sudden today I getting the following error:After much debugging, I found that by removing the following code everything works fine:
It gets stuck and then eventually throws the error during
value.get()
. What's strange is that it has been fine until now, and it breaks with any query or dataset. I tried running the example from the docs and it caused the same issue. Nothing that I can think of changed on my system since it last worked, and I have tried using different versions of the package. Has anyone run into a similar issue before?The text was updated successfully, but these errors were encountered: