First, thanks for this great resource for learning Gatsby and headless WordPress. I really appreciate it. It works flawlessly when I use the default WP URL.
When I switch the URL over to my existing WP site (with WPGraphQL already installed) and yarn workspace starter develop
it chugs through all of the posts no problem, but then seems to choke on pages, specifically at the createPagesfetch page 1 of pages...
portion of events.
error Plugin gatsby-theme-twentynineteen returned an error
TypeError: Cannot read property 'uri' of null
- createPages.js:134 allPages.map.page
.../twentynineteen-gatsby-theme/packages/gatsby-theme-twentynineteen/utils/createPages.js:134:43
- Array.map
- createPages.js:133 fetchPages.then.allPages
.../twentynineteen-gatsby-theme/packages/gatsby-theme-twentynineteen/utils/createPages.js:133:16
I would assume that's because of either a protected post, or some corrupt data in my poor old database that has been through its share of abuse.
It then appears to continue to chug along for a few successful commands, before erroring out harder:
success createPages โ 21.011 s
success createPagesStatefully โ 0.074 s
success onPreExtractQueries โ 0.001 s
success update schema โ 0.531 s
warning There are conflicting field types in your data. GraphQL schema will omit those fields.
SitePage.context.categories.nodes[]:
- type: object
value: [Object: null prototype] { name: 'trinity', slug: 'trinity' }
source: c55ab679-495e-5d92-9671-1c927e8b636b
SitePage.context.prev.categories.nodes[]:
- type: object
value: [Object: null prototype] { name: 'trinity', slug: 'trinity' }
source: c55ab679-495e-5d92-9671-1c927e8b636b
SitePage.context.next.categories.nodes[]:
- type: object
value: [Object: null prototype] { name: 'trinity', slug: 'trinity' }
source: c55ab679-495e-5d92-9671-1c927e8b636b
SitePage.context.nodes[].categories.nodes[]:
- type: object
value: [Object: null prototype] { name: 'trinity', slug: 'trinity' }
source: c55ab679-495e-5d92-9671-1c927e8b636b
error Type categories must define one or more fields.
Type categories_2 must define one or more fields.
Type categories_3 must define one or more fields.
Type categories_4 must define one or more fields.
Error: Type categories must define one or more fields.
Type categories_2 must define one or more fields.
Type categories_3 must define one or more fields.
Type categories_4 must define one or more fields.
Any help is appreciated.