Skip to content

yarn run gatsby build stalles in run queries in workers #35192

@hellow554

Description

@hellow554

Preliminary Checks

Description

When unning yarn run gatsby build the progress stalls, here's a log:

success compile gatsby files - 0.543s
success load gatsby config - 0.018s
success load plugins - 0.154s
success onPreInit - 0.001s
success delete worker cache from previous builds - 0.002s
success initialize cache - 0.091s
success copy gatsby files - 0.098s
success Compiling Gatsby Functions - 0.404s
success onPreBootstrap - 0.421s
success createSchemaCustomization - 0.002s
success Checking for changed pages - 0.001s
success source and transform nodes - 0.037s
info Writing GraphQL type definitions to /tmp/tmp.XznRs8rQkV/.cache/schema.gql
success building schema - 0.340s
success createPages - 0.001s
success createPagesStatefully - 0.079s
info Total nodes: 20, SitePage nodes: 1 (use --verbose for breakdown)
success Checking for changed pages - 0.001s
success Cleaning up stale page-data - 0.003s
success onPreExtractQueries - 0.001s
success extract queries from components - 0.130s
success write out redirect data - 0.005s
success onPostBootstrap - 0.002s
info bootstrap finished - 5.077s
success write out requires - 0.009s
success Building production JavaScript and CSS bundles - 0.818s
success Building HTML renderer - 0.372s
success Execute page configs - 0.036s
success Caching Webpack compilations - 0.003s
[                            ]   0.001 s 0/1 0% run queries in workers

If you remove the (empty) gatsby-config.js file it "compiles" just fine.
npm run build also just works fine.

Reproduction Link

https://github.com/hellow554/gatsby-yarn

Steps to Reproduce

  1. yarn install
  2. yarn run gatsby build

Expected Result

The build is succeful

Actual Result

The build stalls

Environment

System:
    OS: Linux 5.10 Ubuntu 21.10 21.10 (Impish Indri)
    CPU: (8) x64 Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
    Shell: 3.1.2 - /usr/local/bin/fish
  Binaries:
    Node: 14.19.1 - /tmp/xfs-13e4cf48/node
    Yarn: 3.2.0 - /tmp/xfs-13e4cf48/yarn
    npm: 6.14.16 - /usr/bin/npm
  Languages:
    Python: 3.9.7 - /usr/bin/python

Config Flags

module.exports = {};

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: coreRelates to Gatsby's core (e.g. page loading, reporter, state machine)type: bugAn issue or pull request relating to a bug in Gatsby

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions