-
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
Netlify wont build. Building gatsby-image and production js / css bundles now takes substantially longer time. #15278
Comments
Try using See here for more details: https://github.com/styled-components/babel-plugin-styled-components/releases/tag/v1.10.6 Also upgrade Gatsby to the latest version. They seem to have increased build time for lots of people too by using babel-loader for node_modules since 2.11, but the latest patch releases improve that. |
Have you tried gatsby version 2.11.8? It should have a fix for slow builds |
@ArthurHwang Here is what I just did with my site that was timing out. I would be interested in knowing if it works for you. In essence... I ran:
|
@grubersjoe thanks for that i actually ended up downgrading to 1.10.0 and it fixed my issue just now before I read your comment. I am just glad that an actual reason was found for this issue. I will upgrade to 1.10.6 latest version and see what happens then report back. Thank you again. |
Had a similar issue. Upgrading to babel-plugin-styled-components@1.10.6 solved it for me. |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open! As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contributefor more information about opening PRs, triaging issues, and contributing! Thanks for being a part of the Gatsby community! 💪💜 |
Thank you for opening this, @ArthurHwang We're marking this issue as answered and closing it for now but please feel free to reopen this and comment if you would like to continue this discussion. We hope we managed to help and thank you for using Gatsby! 💜 |
Summary
Every deploy to netlify since I believe since around 6/27 has massively grown in time to build and get hit with timeout everytime.
Before whatever that happened, my deploys used to build pretty quickly for a 3000 ish page with 4000 image transformation site.
Relevant information
Here is a screenshot from before this started happening of a usual deploy:
https://imgur.com/SINW61K
Here it is now with timeout:
https://imgur.com/jqrlja1
notice how much longer it takes to build javascript / css bundles
also, I noticed since this has been happening. The build process of gatsby image generation has also significantly taken longer.
In the screenshot above, it took 1668 seconds to complete this step. Before with an non-cached build it would take 600 seconds for near 4000 images.
The building production js / css step used to take sub 40 seconds.
Environment (if relevant)
File contents (if changed)
package.json
:gatsby-node.js
:gatsby-browser.js
: N/Agatsby-ssr.js
: N/AThe text was updated successfully, but these errors were encountered: