Hey, I'm completely new to this world of Gatsby, and I'm trying to wrap my head around a Wordpress theme so I can see real life how to use this... However, I'm stuck.
I have a local Wordpress environment I'm using for a source, so please ignore the "SSL" errors, but the other areas, I don't even have a clue :(
Interface field WpHierarchicalContentNode.wpParent expected but WpMediaItem does not provide it.
I know what Interfaces are, and I understand the errors "Meaning" but I don't have a clue where to look, or how this is an issue. Maybe you can point me in the right direction?
roberts-mbp:gatsby-starter-wordpress-twenty-twenty robert$ gatsby develop
success open and validate gatsby-configs - 0.028s
success load plugins - 0.573s
success onPreInit - 0.012s
success initialize cache - 0.036s
success copy gatsby files - 0.032s
success onPreBootstrap - 0.007s
ERROR
(node:53333) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
(Use node --trace-warnings ...
to show where the warning was created)
⠀
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 - 0.469s
success createSchemaCustomization - 0.637s
success gatsby-source-wordpress Taxonomy - 0.149s - fetched 3
success gatsby-source-wordpress ContentType - 0.225s - fetched 0
success gatsby-source-wordpress Menu - 0.236s - fetched 1
success gatsby-source-wordpress Tag - 0.234s - fetched 4
success gatsby-source-wordpress Category - 0.292s - fetched 4
success gatsby-source-wordpress TermNode - 0.243s - fetched 8
success gatsby-source-wordpress Comment - 0.312s - fetched 0
success gatsby-source-wordpress Post - 0.294s - fetched 2
success gatsby-source-wordpress MenuItem - 0.322s - fetched 5
success gatsby-source-wordpress Page - 0.327s - fetched 5
success gatsby-source-wordpress User - 0.353s - fetched 2
success gatsby-source-wordpress MediaItem - 1.284s - fetched 46
success gatsby-source-wordpress creating nodes - 1.292s - awaiting async side effects - 5 additional nodes fetched
success gatsby-source-wordpress fetching nodes - 1.727s - 80 total
success gatsby-source-wordpress fetch root fields - 0.053s
success source and transform nodes - 1.835s
graphql-compose: Delete field 'WpMediaItem.wpParent' with type 'WpHierarchicalContentNodeToContentNodeConnectionEdge', cause it does not have fields.
graphql-compose: Delete field 'WpPage.wpParent' with type 'WpHierarchicalContentNodeToContentNodeConnectionEdge', cause it does not have fields.
success building schema - 0.376s
ERROR #11321 PLUGIN
"gatsby-node.js" threw an error while running the createPages lifecycle:
Interface field WpHierarchicalContentNode.wpParent expected but WpMediaItem does not provide it.
Type WpHierarchicalContentNodeToContentNodeConnectionEdge must define one or more fields.
Interface field WpHierarchicalContentNode.wpParent expected but WpPage does not provide it.
Type WpNodeWithRevisionsToContentNodeConnectionEdge must define one or more fields.
13 |
14 | exports.createPages = async (props) => {
15 | const { data: wpSettings } = await props.graphql(/* GraphQL */ `
| ^
16 | {
17 | wp {
18 | readingSettings {
File: gatsby-node.js:15:44
Error: Interface field WpHierarchicalContentNode.wpParent expected but WpMediaItem does not provide it.
Type WpHierarchicalContentNodeToContentNodeConnectionEdge must define one or more fields.
Interface field WpHierarchicalContentNode.wpParent expected but WpPage does not provide it.
Type WpNodeWithRevisionsToContentNodeConnectionEdge must define one or more fields.
-
graphql-runner.js:95 GraphQLRunner.validate
[gatsby-starter-wordpress-twenty-twenty]/[gatsby]/dist/query/graphql-runner.js:95:44
-
graphql-runner.js:161 GraphQLRunner.query
[gatsby-starter-wordpress-twenty-twenty]/[gatsby]/dist/query/graphql-runner.js:161:25
-
create-graphql-runner.js:33 Object.graphql
[gatsby-starter-wordpress-twenty-twenty]/[gatsby]/dist/bootstrap/create-graphql-runner.js:33:37
-
gatsby-node.js:15 Object.exports.createPages
/Users/robert/Sites/gatsby-starter-wordpress-twenty-twenty/gatsby-node.js:15:44
-
api-runner-node.js:256 runAPI
[gatsby-starter-wordpress-twenty-twenty]/[gatsby]/dist/utils/api-runner-node.js:256:37
-
From previous event:
-
api-runner-node.js:258 runAPI
[gatsby-starter-wordpress-twenty-twenty]/[gatsby]/dist/utils/api-runner-node.js:258:22
-
api-runner-node.js:375 Promise.catch.decorateEvent.pluginName
[gatsby-starter-wordpress-twenty-twenty]/[gatsby]/dist/utils/api-runner-node.js:375:15
-
From previous event:
-
api-runner-node.js:374
[gatsby-starter-wordpress-twenty-twenty]/[gatsby]/dist/utils/api-runner-node.js:374:12
-
timers.js:458 processImmediate
internal/timers.js:458:21
-
From previous event:
-
api-runner-node.js:368
[gatsby-starter-wordpress-twenty-twenty]/[gatsby]/dist/utils/api-runner-node.js:368:11
-
From previous event:
-
api-runner-node.js:275 module.exports
[gatsby-starter-wordpress-twenty-twenty]/[gatsby]/dist/utils/api-runner-node.js:275:12
-
index.js:417 module.exports
[gatsby-starter-wordpress-twenty-twenty]/[gatsby]/dist/bootstrap/index.js:417:9
-
develop-process.js:459 async module.exports
[gatsby-starter-wordpress-twenty-twenty]/[gatsby]/dist/commands/develop-process.js:459:7
failed createPages - 0.052s
success createPagesStatefully - 0.042s
success onPreExtractQueries - 0.002s
success update schema - 0.024s
**ERROR
Interface field WpHierarchicalContentNode.wpParent expected but WpMediaItem does not provide it.
Type WpHierarchicalContentNodeToContentNodeConnectionEdge must define one or more fields.
Interface field WpHierarchicalContentNode.wpParent expected but WpPage does not provide it.
Type WpNodeWithRevisionsToContentNodeConnectionEdge must define one or more fields.**
Error: Interface field WpHierarchicalContentNode.wpParent expected but WpMediaItem does not provide it.
Type WpHierarchicalContentNodeToContentNodeConnectionEdge must define one or more fields.
Interface field WpHierarchicalContentNode.wpParent expected but WpPage does not provide it.
Type WpNodeWithRevisionsToContentNodeConnectionEdge must define one or more fields.
-
query-compiler.js:203 extractOperations
[gatsby-starter-wordpress-twenty-twenty]/[gatsby]/dist/query/query-compiler.js:203:20
-
query-compiler.js:177 processQueries
[gatsby-starter-wordpress-twenty-twenty]/[gatsby]/dist/query/query-compiler.js:177:7
-
query-compiler.js:97 compile
[gatsby-starter-wordpress-twenty-twenty]/[gatsby]/dist/query/query-compiler.js:97:19
-
index.js:461 async module.exports
[gatsby-starter-wordpress-twenty-twenty]/[gatsby]/dist/bootstrap/index.js:461:3
-
develop-process.js:459 async module.exports
[gatsby-starter-wordpress-twenty-twenty]/[gatsby]/dist/commands/develop-process.js:459:7
not finished Downloading remote files - 1.648s
not finished extract queries from components - 0.406s