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

1.13.0 - Gatsby - Error: Cannot destructure property 'fields' of 'nodesType' as it is undefined #2634

Closed
2 of 3 tasks
fly-oinotna opened this issue Nov 29, 2022 · 3 comments
Closed
2 of 3 tasks

Comments

@fly-oinotna
Copy link

Description

Updated a couple of hours ago to 1.13.0 and I wasn't able to start my Gatsby app, not even in develop mode.

Tried to disable all plugins and the error still remained. Rolled back to 1.12.3, and everything works fine again. After re-activating all other plugins everything works fine

Steps to reproduce

"gatsby develop"

Additional context

Detailed error:

TypeError: Cannot destructure property 'fields' of 'nodesType' as it is undefined.
at generateNodeQueriesFromIngestibleFields (/xxx/gatsbyapp/node_modules/gatsby-source-wordpress/src/steps/ingest-remote-schema/build-queries-from-introspection/generate-queries-from-ingestable-types.js:155:13)
at buildNodeQueries
(/xxx/gatsbyapp/node_modules/gatsby-source-wordpress/src/steps/ingest-remote-schema/build-queries-from-introspection/build-node-queries.js:25:25)
at runSteps (/xxx/gatsbyapp/node_modules/gatsby-source-wordpress/src/utils/run-steps.ts:41:9)
at runSteps (/xxx/gatsbyapp/node_modules/gatsby-source-wordpress/src/utils/run-steps.ts:43:9)
at ingestRemoteSchema (/xxx/gatsbyapp/node_modules/gatsby-source-wordpress/src/steps/ingest-remote-schema/index.js:49:5)
at runSteps (/xxx/gatsbyapp/node_modules/gatsby-source-wordpress/src/utils/run-steps.ts:41:9)
at runAPI (/xxx/gatsbyapp/node_modules/gatsby/src/utils/api-runner-node.js:487:16)

WPGraphQL Version

1.13.0

WordPress Version

6.1.1

PHP Version

8.1

Additional enviornment details

No response

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have disabled ALL plugins except for WPGraphQL.

  • Yes
  • My issue is with compatibility with a specific WordPress plugin, and I have listed all my installed plugins (and version info) above.
@jasonbahl
Copy link
Collaborator

I've talked with @TylerBarnes the maintainer of Gatsby Source WordPress.

It seems like there's some conflicts with Types. v1.13.0 of WPGraphQL introduced a Connection Interface, implemented by all Connections.

Gatsby also has a Connection type, so this was causing some conflicts.

We're looking into resolving this from both sides.

Hope to have something soon

@fly-oinotna
Copy link
Author

Thank you @jasonbahl, I'll wait for news before updating again!

@TylerBarnes
Copy link
Collaborator

Hi @fly-oinotna sorry for the trouble here, I'm very close to having a solution. You can follow along here gatsbyjs/gatsby#37114

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

3 participants