Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks done
An0nymusA opened this issue Aug 7, 2024 · 0 comments
Open
2 tasks done
Labels
status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer type: bug An issue or pull request relating to a bug in Gatsby

Comments

@An0nymusA
Copy link

An0nymusA commented Aug 7, 2024

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

@An0nymusA An0nymusA added the type: bug An issue or pull request relating to a bug in Gatsby label Aug 7, 2024
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer type: bug An issue or pull request relating to a bug in Gatsby
Projects
None yet
Development

No branches or pull requests

1 participant