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

WooGraphQL is not working on Gatsby #842

Open
raugustinas opened this issue Mar 25, 2024 · 1 comment
Open

WooGraphQL is not working on Gatsby #842

raugustinas opened this issue Mar 25, 2024 · 1 comment

Comments

@raugustinas
Copy link

Describe the bug
I have created a WordPress website with WooCommerce installed and activated. Then I installed WPGraphQL and WooGraphQL plugins. Then I created a new Gatsby project, installed gatsby-source-wordpress and tried to run the project. Everything runs fine when the WooGraphQL is deactivated and throws an error when activated:
Missing onError handler for invocation 'extracting-queries', error was 'Error: Interface field WpConnectionType.pageInfo expected but WpProductToProductAttributeConnectionType does not provide it. at assertValidSchema (/Users/ro/Documents/project/node_modules/graphql/type/validate.js:59:11) at validate (/Users/ro/Documents/project/node_modules/graphql/validation/validate.js:63:35) at extractOperations (/Users/ro/Documents/project/node_modules/gatsby/src/query/query-compiler.js:214:18) at processQueries (/Users/ro/Documents/project/node_modules/gatsby/src/query/query-compiler.js:170:45) at compile (/Users/ro/Documents/project/node_modules/gatsby/src/query/query-compiler.js:80:19) at updateStateAndRunQueries (/Users/ro/Documents/project/node_modules/gatsby/src/query/query-watcher.ts:236:40) at extractQueries (/Users/ro/Documents/project/node_modules/gatsby/src/services/extract-queries.ts:18:3)'

To Reproduce
Steps to reproduce the behaviour:

  1. Create a WordPress website.
  2. Install and activate WooCommerce.
  3. Install and activate WPGraphQL.
  4. Install and activate WooGraphQL.
  5. Create and run the Gatsby project.

Expected behaviour
Gatsby should build and run the project.

Plugin Versions

  • WooGraphQL Version: 0.19.0
  • WPGraphQL Version: 1.22.1
  • WordPress Version: 6.4.3
  • WooCommerce Version: 8.7.0
@Ys-sudo
Copy link

Ys-sudo commented Apr 8, 2024

Hey there ! I managed to get this working by downgrading the woographql plugin to version 0.15.0
Hope it helps :) Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants