Closed stevepepple closed 2 years ago
Unfortunately I can't reproduce with the reproduction you shared. Did you try a gatsby clean
before a build? Can you share your project if it differs from the starter?
Thanks for checking @LekoArts, I think it does happen intermittently for me in the starter, but appears to be a VS Code and Github Code, specific issue:
Even though I've removed the debug option from Gatsby and config from VS Code the develop process still attaches to a debugger like so:
$ cross-env GATSBY_ENV=staging gatsby develop -H 0.0.0.0 -p 8080 Environment: staging GraphQL Endpoint: https://cms.vibemap.com/graphql
Debugger listening on ws://127.0.0.1:53240/e98a2053-92c0-4e54-911d-7b0a6ce204a9
For help, see: https://nodejs.org/en/docs/inspector
Debugger listening on ws://127.0.0.1:53300/87a703b9-7950-4fba-a345-77e2b12b0386
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.
Debugger attached.
info GATSBY_EXPERIMENTAL_QUERY_CONCURRENCY: Running with concurrency set to `16`
⠇ compile gatsby files
About 50% of the time in hangs on compile, but the debugger doesn't hit a break point or exception. This didn't happen in earlier versions of Gatsby
Well, we didn't add a debugger to Gatsby. What happens when you just run gatsby develop
in your terminal? We can't influence your VSCode setup.
Right, @LekoArts, it does seem to be an odd issue in my VSCode environment where the --inspect flag was auto-added, regardless of the NPM script command. So not a Gatsby issue.
Why the debugger stopped working as 4.13 is still a question, but I also assume not a Gatsby issue.
Okay, thanks for the info!
I am having the same problem. When running npm run develop
/npm start
, It doesnt go past the compile gatsby files
stage.
Does anyone have a fix for this? This is a new project, No changes to anything.
I am having the same problem. When running
npm run develop
/npm start
, It doesnt go past thecompile gatsby files
stage. Does anyone have a fix for this? This is a new project, No changes to anything.
Did you try gatsby clean
or delete .cache folder?
I have same issue.
I suspend my system, and go to sleep. when I wakeup, wake computer, try gatsby develop
the compile stuck forever
reboot system fixed the problem.
Hey everyone, I had the exact same issue but was able to find the cause of it!
First of all my setup:
Gatsby did suddenly start hanging in the compile process without further proceeding. The verbose flag didn't tell me anything neither. However I was able to reverse all steps until I did figure out what happened.
Because of the firebase node app, I was in need for softlink
of my root
node_modules
. I did this because I didn't want to install my packages twice, which is a shame that firebase can't be integrated easily. Anyway I did create the link like this:
mklink /D apps/firebase-functions-folder/node_modules root-project/node_modules
(windows)
After that I was still able to compile everyhting. But after a restart of my system everything hang up in the gatsby compile
process. After deleting the softlink everything went to normal.
Out of curiosity I did try this on a Linux Distro (Zorin OS) and as expected everything worked normal.
I did start all of my apps like this:
yarn nx serve gatsby-app
yarn nx serve firebase-functions
I am pretty sure that on Windows something with the softlink will cause a hang up. Hope this helps anyone with the same problem.
Preliminary Checks
Description
I'm upgrading Gatsby to
4.13
and when I rungatsby develop
the process doesn't go past thecompile gatsby files
step.Reproduction Link
https://github.com/Vibemap/gatsby-wordpress-starter
Steps to Reproduce
gatsby develop
...
Expected Result
gatsby-node runs
Actual Result
Process is stuck on "compile gatsby files" step
Environment
Config Flags
FAST_DEV: true, DEV_SSR: false, PARALLEL_SOURCING: true,