I've made a Gatsby starter, and two separate people have reported to me that they are unable to run it, because it gets stuck while building a "development bundle". Neither development nor production build works. I'm unable to reproduce this issue on my own machine, but I would like to fix it for the people who want to use my starter. What could cause Gatsby to get stuck in this step, and is there any way that I could force the issue to reproduce on my machine?
During the build (when you run gatsby build or gatsby develop ), data is fetched and combined into a GraphQL schema with a static snapshot of all data your site needs.
The build is failing to find the file at ../..SomeFile.svg. This can be frustrating if your site works when you when run it locally with gatsby develop, and even works when you run gatsby build and gatsby serve locally. A likely problem is that the operating system you are running locally is different than the one where your site is deployed.
Many errors you encounter will mean adjusting how you’ve configured a plugin or API in your site. This guide is meant as a reference for common errors that have tripped up other Gatsby users. Running a site in gatsby develop will set up a server locally that enables features like hot-module replacement.
Because gatsby develop doesn’t run server-side rendering, the build may look different if the plugin is not included to tell Gatsby to server-side render the styles for the CSS-in-JS solution being used.
I solved it by running gatsby clean
and then gatsby develop
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With