• Resolved matterdesign

    (@matterdesign)


    Hi,

    Just an FYI, 1.13.0 when used in conjunction with gatsby-source-wordpress, kills the build with the following error message when fetching data:

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

    Note – I’ve omitted my personal file path from the error above.

    Reverting back to 1.12.2 allows the build to successfully complete.

    • This topic was modified 2 years, 3 months ago by matterdesign. Reason: Additional detail
Viewing 6 replies - 1 through 6 (of 6 total)
  • Same issue, reverting back solved it too. Thanks!

    Plugin Author Jason Bahl

    (@jasonbahl)

    @surralles @matterdesign what other WPGraphQL plugins do you have active, if any?

    That will be very helpful in troubleshooting.

    I’ve identified WPGraphQL for WooCommerce as a plugin that will need updated to work with WPGraphQL v1.13+ and have opened a PR to that plugin to update: https://github.com/wp-graphql/wp-graphql-woocommerce/pull/674

    I’m curious if this build error is caused by a conflict with a plugin, or if it’s purely a gatsby-source-wordpress problem.

    Would love more info about your setup, what plugins you have active along with WPGraphQL, etc.

    Thread Starter matterdesign

    (@matterdesign)

    @jasonbahl sorry for the delay.

    Pertaining to the GraphQL pieces of the setup, we are using:
    WP Gatsby
    WPGraphQL for Advanced Custom Fields
    Add WPGraphQL SEO

    There are other plugins pertaining to the REST API for ACF and Yoast SEO support also.

    Hope that helps?

    the same issue on me, cant run gatsby develop:

    TypeError: Cannot destructure property 'fields' of 'nodesType' as it is
    undefined.
        at generateNodeQueriesFromIngestibleFields 
     ERROR #gatsby-source-wordpress_112003
    
     gatsby-source-wordpress
    
            Encountered a critical error when running the buildNodeQueries build step.
            See above for more information.
    

    I’ve got only wp gatsby

    Plugin Author Jason Bahl

    (@jasonbahl)

    There’s been several point release updates to 1.13, and 1.14.0 was released today.

    Is this still an issue?

    If so, I think the best recommendation would be to provide detailed steps to reproduce in a Github Issue and we an look into it more deeply.

    Plugin Author Jason Bahl

    (@jasonbahl)

    Marking this resolved as there’s been no confirmation that this is still an issue since the 1.14 release.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘1.13 returns blank fields’ is closed to new replies.