-
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 4 cannot handle csv sourcing that was handled in Gatsby 3 (out-of-memory) #34336
Comments
could be related to #34081 |
looks like the same issue as there is also no see the comment by @KyleAMathews why this breaks in v4 here #34081 (comment) |
@witcradg If you follow the structure of my fix PR for the json transformer you should be able to fix this one as well. https://github.com/gatsbyjs/gatsby/pull/34084/files |
That worked! I modified the source directly in the node_modules/gatsby-transformer-csv/gatsby-node.js and it worked. Now I just have to figure out how to make that work when I deploy to Netlify. |
Would be great if you could pr the improvement to the plugin as well! |
@witcradg awesome! let me know if you need help with patching. would love to see the fix in the plugin and can help if needed. |
Closing as duplicate of #33868 - we'd be happy to review a PR fixing this. Thanks! |
|
Is it normal to close an issue before the change to the codebase has been merged when such a change is needed? |
This issue is closed bc it's a duplicste of the mentioned issue #33868. Just head over and we'll consolidate the conversation to prep the fix over there. |
Preliminary Checks
Description
This issue is preventing me from upgrading a Gatsby 3 site to Gatsby 4.
I'm working on a site with something around 9k pages built with sourcing from a csv (tsv) file containing over 8k records.
I was able to build this with the default memory allocation when using Gatsby 3. (As I understand it, the default memory configuration for Gatsby 3 is 2GB). The site is in production using Netlify and Gatsby 3.
When I tried to upgrade to Gatsby 4, I discovered the data source I used could not be handled. This seems to be an out-of-memory condition resulting in the "Killed" termination even when increasing the memory allocated using NODE_OPTIONS=--max-old-space-size=8192
I've created a public repository demonstating the problem.
I started with the default Gatsby (4) starter. Then I only added the tsv file, installed gatsby-transformer-csv and modified gatsby-config.js to load the tsv.
The results:
Reproduction Link
https://gitlab.com/witcradg/gatsby4-issue-demo
Steps to Reproduce
...
Expected Result
I expect the build to complete.
Actual Result
The build fails.
Environment
Config Flags
No response
The text was updated successfully, but these errors were encountered: