gatsby: Fails in dev environment @ createSchemaCustomization
For the past few days this issue has been preventing me from making changes to our code. I will not use the code from my repo as it is private but I have replicated this via the Gatsby WordPress tutorial and encountered the exact same problem.
Specification of plugins:
- WP Gatsby 0.9.1
- WP GraphQL 1.1.1
- gatsby-source-wordpress-experimental 6.2.0
- WP 5.6
Once I’ve updated gatsby-config.js I run gatsby develop and encounter the following issue:
warn Warning: there are unknown plugin options for "gatsby-source-wordpress-experimental": protocol,
restApiRoutePrefix, hostingWPCOM, useACF
success load plugins - 0.871s
success onPreInit - 0.034s
success initialize cache - 0.019s
success copy gatsby files - 0.062s
success onPreBootstrap - 0.017s
success gatsby-source-wordpress ensuring plugin requirements are met - 2.294s
⠀
info gatsby-source-wordpress
This is either your first build or the cache was cleared.
Please wait while your WordPress data is synced to your Gatsby cache.
Maybe now's a good time to get up and stretch? :D
success gatsby-source-wordpress ingest WPGraphQL schema - 2.367s
ERROR
There was an error
not finished createSchemaCustomization - 4.703s
As you can see the error provides no feedback on what could be causing this problem. Please can you help me address this issue?
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 3
- Comments: 16 (11 by maintainers)
Commits related to this issue
- fix(gatsby-source-wordpress):issue #29535 not finished createSchemaCu… (#29554) Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com> — committed to gatsbyjs/gatsby by lwz7512 3 years ago
- fix(gatsby-source-wordpress):issue #29535 not finished createSchemaCu… (#29554) Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com> (cherry picked from commit 308d418e43d32ff4b323d2aae2c5dc8... — committed to gatsbyjs/gatsby by lwz7512 3 years ago
- fix(gatsby-source-wordpress):issue #29535 not finished createSchemaCu… (#29554) (#29712) Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com> (cherry picked from commit 308d418e43d32ff4b323d... — committed to gatsbyjs/gatsby by deleted user 3 years ago
Heyo, @TylerBarnes is there anything else you need from the community in terms of reproduction?
Curious because this issue is preventing myself (and others) from upgrading to
gatsby-souce-wordpress@v4which was just released.I just tried this morning with the latest packages. But no bueno. Here’s some more info:
Gatsby info
WordPress Plugins
Gutenberg:
9.9.1WP Gatsby:1.0.1WP GraphQL:1.1.3WPGraphQL Custom Post Type UI:1.1WPGraphQL for Advanced Custom Fields:0.3.4WPGraphQL WPML:0.0.1WordPress Version:5.6.1Build Error
Had the same problem but with : gatsby-source-wordpress-experimental:
^7.0.0, WP GraphQL:v1.1.2Downgraded to: gatsby-source-wordpress-experimental:
^6.0.0, WP GraphQL:v1.0.5(as suggested by @AdrianLuk )and it’s working again for me 🎉
some other plugins I have installed in WP that remained untouched: WP Gatsby:
v0.9.1WPGraphQL Custom Post Type UI:v1.1WPGraphQL for Advanced Custom Fields:v0.3.4WPGraphQL WPML:v0.0.1Awesome! @TylerBarnes love to see this!
A workaround for this issue temporarily is using my patched starter:
This starter is a fork version of official Wordpress blog starter which includes a patch script
fix-gsw.js:Enjoy!
I figured it out!
There is a null value of
transformedFieldsin build-types.js on line 128. So, to fix this bug, null check is required:@TylerBarnes @AdrianLuk Is it not possible to explicitly state the reliance/dependency on WP related plugins in the tutorials because I used this as a de facto starting point.
Since this wasn’t the first instance of my technical issues - not solely due to this plugin, but a part was played - I’ve begun looking at alternative CMSs which unfortunately means I will be abandoning WP and this plugin (perhaps temporarily, perhaps not) due to my development experience.
I do believe an up-to-date version of the documentation detailing specific requirements on both ends could have thwarted me from taking a step back and giving my options a thorough investigation.
I can confirm that rolling back to previous versions worked for me too 🔥
I’ve discovered the issue is WP Graphql 1.1.1…downgrading to 1.0.5 for now fixes it for me