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 build fails when updating WP GraphQL to v2.0 #39231

Open
2 tasks done
pseelinger opened this issue Feb 19, 2025 · 5 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

@pseelinger
Copy link

Preliminary Checks

Description

Getting this error when trying to build with gatsby-source-wordpress:

ERROR UNKNOWN\n\n gatsby-source-wordpress Your remote version of WPGraphQL is not within the accepted range (>=1.1.2 <2.0.0). This is not a bug and it means one of two things: you either need to upgrade WPGraphQL or gatsby-source-wordpress. 1. If the version of WPGraphQL in your WordPress instance is higher than 2.0.0 it means you need to upgrade your version of gatsby-source-wordpress. 2. If the version of WPGraphQL in your WordPress instance is lower than 1.1.2 it means you need to upgrade your version of WPGraphQL. You can find a matching WPGraphQL version at https://github.com/wp-graphql/wp-graphql/releases

Seems pretty straightforward what the issue is, but I'm unsure if there are larger implications considering this is a major version upgrade, and there's not a matching version of gatsby-source-wordpress currently.

Reproduction Link

/

Steps to Reproduce

  1. Upgrade WP GraphQL to 2.0
  2. Run a clean build
    ...

Expected Result

Successful build

Actual Result

Receive an error message indicating I have the wrong version of gatsby-source-wordpress

Environment

System:
    OS: macOS 15.3
    CPU: (12) arm64 Apple M2 Max
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.14.0 - /var/folders/td/zvdj7zsj31x0wzcwbgc980jh0000gn/T/yarn--1739975514675-0.3432842195951191/node
    Yarn: 1.22.22 - /var/folders/td/zvdj7zsj31x0wzcwbgc980jh0000gn/T/yarn--1739975514675-0.3432842195951191/yarn
    npm: 10.9.2 - ~/.nvm/versions/node/v22.14.0/bin/npm
  Languages:
    Python: 3.10.13 - /Users/patrickseelinger/.pyenv/shims/python
  Browsers:
    Chrome: 133.0.6943.126
    Safari: 18.3
  npmPackages:
    gatsby: ^5.14.1 => 5.14.1 
    gatsby-plugin-emotion: ^8.14.0 => 8.14.0 
    gatsby-plugin-google-tagmanager: ^5.14.0 => 5.14.0 
    gatsby-plugin-image: ^3.14.0 => 3.14.0 
    gatsby-plugin-manifest: ^5.14.0 => 5.14.0 
    gatsby-plugin-robots-txt: ^1.8.0 => 1.8.0 
    gatsby-plugin-s3: ^0.4.1 => 0.4.1 
    gatsby-plugin-sharp: ^5.14.0 => 5.14.0 
    gatsby-plugin-sitemap: ^6.14.0 => 6.14.0 
    gatsby-source-wordpress: 7.14.0 => 7.14.0 
    gatsby-transformer-sharp: ^5.14.0 => 5.14.0

Config Flags

FAST_DEV: true
PRESERVE_FILE_DOWNLOAD_CACHE: true
DEV_SSR: false

@pseelinger pseelinger added the type: bug An issue or pull request relating to a bug in Gatsby label Feb 19, 2025
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Feb 19, 2025
@NicktheGeek
Copy link

Confirming I have this same build error. I can force it to ignore the requirements check and it works, but this isn't ideal.

@agnescameron
Copy link

same error!

@mikexavier
Copy link

Experiencing the same... 👀

@ZLevine
Copy link

ZLevine commented Feb 24, 2025

Also experiencing this

@ashleynexvelsolutions
Copy link

I am having the same issue.

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

6 participants