gatsby-source-wordpress: Compilation process freezes when WPGraphQL for ACF activated
Opened this issue · 0 comments
Preliminary Checks
- This issue is not a duplicate. Before opening a new issue, please search existing issues: https://github.com/gatsbyjs/gatsby/issues
- This issue is not a question, feature request, RFC, or anything other than a bug report directly related to Gatsby. Please post those things in GitHub Discussions: https://github.com/gatsbyjs/gatsby/discussions
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
- Install wp plugins
- Install gatsby dependencies
- Import ACF (acf-export-2024-07-15.1.json)
- run
gatsby develop
Expected Result
Project is compiled successfully
Actual Result
Stuck on
⠹ gatsby-source-wordpress ingest WPGraphQL schema
Environment
...
Config Flags
No response