Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What might cause `gatsby develop` to get stuck while building "development bundle"?

Tags:

webpack

gatsby

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?

like image 873
Atte Juvonen Avatar asked Mar 31 '20 15:03

Atte Juvonen


People also ask

How does the Gatsby build work?

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.

Why can't I find the file in Gatsby build?

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.

Why am I getting so many errors in Gatsby develop?

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.

Why does my Gatsby build look different when using CSS-in-JS?

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.


1 Answers

I solved it by running gatsby clean and then gatsby develop

like image 75
saikathalderr Avatar answered Oct 09 '22 16:10

saikathalderr