Gatsby develop gets stuck in an infinite loop, and also this error "Looks like develop for this site is already running, can you visit http://localhost:8000 ? If it is not, try again in five seconds!" #26869
-
I'm getting the error:
I have tried killing all the node processes, deleting .cache/ and public/, updating and reinstalling all the node_packages, restarting my laptop - I'm still getting the same error. It's really weird. When I open http://localhost:8000, nothing is running there. Can someone help me figure out what's wrong? I have tried changing the port in package.json:
and things got even weirder - gatsby got stuck in the infinite loop. Printing out Something is already running at port 8000
|
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 1 reply
-
It was fixed in one of the latest versions. What version of gatsby are you running? |
Beta Was this translation helpful? Give feedback.
-
@raymestalez getting the same error today on gatsby-cli 2.12.87 and gatsby 2.24.26, will check if updating helps 😉 |
Beta Was this translation helpful? Give feedback.
-
@raymestalez what worked for me after updating gatsby-cli and gatsby, was to initialize new test project with Now go back to your project that didn't work and try |
Beta Was this translation helpful? Give feedback.
-
@wardpeet could you look at this, please? |
Beta Was this translation helpful? Give feedback.
-
@raymestalez Hello! Apologies that you're seeing this. It appears that you might either have a process running or a stale lock file. Here is what we suggest:
This was fixed but let us know if you're still seeing it! |
Beta Was this translation helpful? Give feedback.
-
I had the same issue and it seems to stop when i set: graphqlTypegen: false, In the gatsby-config.ts so I assume that when the types are generated it gets detected by the autoreload step |
Beta Was this translation helpful? Give feedback.
@raymestalez Hello!
Apologies that you're seeing this. It appears that you might either have a process running or a stale lock file. Here is what we suggest:
~/.config/gatsby/sites
folderps aux | grep gatsby
to see any stale processes that you might have running tat are listening on port 8000This was fixed but let us know if you're still seeing it!