gatsbyjs/gatsby

gatsby-source-wordpress: Compilation process freezes when WPGraphQL for ACF activated

Opened this issue · 0 comments

Preliminary Checks

Description

When i activate the WPGraphQL for ACF plugin i am not able to compile the project.

when i try to compile, it freezes at this step

⠹ gatsby-source-wordpress ingest WPGraphQL schema

When i check logs, the wordpress gets requests and responds with 200, in the terminal it seems stuck, but when i look at the processes its in loop and still sends requests, but without the error.

Once i had a problem with czech characters, ščěšžřášíé etc. in label name. Now i removed all of them but the problem is still ongoing.

But when i disable the plugin, everything works fine. (also the api works fine inside the graphiql wordpress ide)
EDIT: the problem is in this file https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-source-wordpress/src/steps/ingest-remote-schema/build-queries-from-introspection/recursively-transform-fields.js where it creates an infinite loop

WPGraphQL Version

1.27.2

WPGraphQL For ACF Version

2.3.0

ACF (Advanced Custom Fields) Version. Free or Pro?

6.3.3 pro

WordPress Version

6.5.5

Reproduction Link

https://codesandbox.io/p/devbox/lingering-tree-n7jfkl

Steps to Reproduce

  1. Install wp plugins
  2. Install gatsby dependencies
  3. Import ACF (acf-export-2024-07-15.1.json)
  4. run gatsby develop

Expected Result

Project is compiled successfully

Actual Result

Stuck on

⠹ gatsby-source-wordpress ingest WPGraphQL schema

Environment

...

Config Flags

No response