gatsby: Gatsby develop stuck on Windows 10
Hello guys. I used Solus OS (linux) and gatsby worked just fine without any problem. Now I’m using Windows 10 (x64). Everything I type “gatsby develop” the first time after turning on my computer, it stucks right here:
success write out requires - 0.116s
success write out redirect data - 0.016s
⠋ onPostBootstrap
⠋ Build manifest and related icons
And I have to Ctrl+C and then “gatsby develop” again and it works. Always stucks at the first time.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 21
- Comments: 35 (9 by maintainers)
I’ve been facing the same issue on Windows (stuck on onPostBootstrap & Build manifest and related icons), but largely ignore it because I just hit Ctrl+C and run it again (which works all the time). I am using an svg instead of a png for the icon. It is not a big deal, but kinda annoying since I have to hit Ctrl+C to get it to work in dev.
gatsby-config.js
output:
My solution was;
Update the gatsby-cli and nodejs if possible.
Remove the node_modules, .cache, the public folder and the yarn.lock or package-lock.json files.
I believe the sharp or the pngquant libraries need some processing power to compress your images and icons, to free some resources you could kills some apps or processes running on your machine using Task manager on Windows OS, for example Google Chrome or any other apps consuming resources on your CPU and Memory then try to run yarn install and gatsby develop and it did worked for me.
This issue is driving me crazy, two thirds of my attempts to do
gatsby buildodevelopend ups stuck just like this.Commenting out the SVG icon for the manifest plugin fixes this issue, but I need it for production builds.
Seems to happen on Windows 10 but not on Ubuntu server 🤷
This solution helped me also. I updated gatsby-cli, removed the node_modules, .cache, public folders and the package-lock.json file. After that I ran a clean npm install.
I can confirm that I no longer see this issue happening after upgrading to the latest version. Thank you!
I have been dealing with this issue from day one of using Gatsby. No matter what starter or theme I use, the same thing always happens to me.
Any solution?
I’ve also had this issue, but via
gatsby build, not just viagatsby developas the issue says, just in case the ‘develop’ bit is a red herring for someone looking into this. The workaround of pressing a key to ‘flush’ the console doesn’t work in my case I’m using a vscode task.For me this workaround from issue #31878 works. I was hoping it was fixed in the latest version of Gatsby, but the problem just moved from production build to development build.
Steps to reproduce
gatsby developResult
Environment
yarn.lock
package.json
What I’ve tried
gatsby cleanReferences: @28development/gatsby-source-gitlab-api#1, @gatsbyjs/gatsby#17131, @gatsbyjs/gatsby#28632
I am also getting the issue Running on node 15.5 & Windows 10 20H2 Gatsby 2.30.1 & 2.30.
For me, the issue seems to disappear if I choose a png as a source file instead of an svg
@moonmeister Looked good yesterday after updating to gatsby@2.30.1. But today I’ve had a change in
gatsby-config.jsand am experiencing the issue again unfortunately.gatsby developstalls ononPostBootstrap/Build manifest and related iconsin first build after config-change. Killing the process and re-issuing the command runs successfully to the end. Which is how it’s always been for me.edit: It does not happen after every config change though, so I can’t reliably reproduce it.
same here
I’ll give it a test over the next few days. I have updated all my packages now and done a gatsby clean.
Latest Gatsby(v2.30) updated to ink@v3. I’m curios if anyone could update and test to see if this has resolved the issue.
Exactly the same for me. Would also like some solution for this (although it doesn’t seem mission critical at this point as this only happens on my development Windows machine and not in my CI, so my production release cycle is not affected in any way).