maru3l / wp-rest-polylang

Integrate Polylang into Wordpress REST API
GNU General Public License v3.0
15 stars 10 forks source link

TypeError: Cannot read property 'id' of undefined #4

Open amiralikul opened 5 years ago

amiralikul commented 5 years ago

adding this plugin to wordpress results in the following error.

ERROR #11321 PLUGIN

"gatsby-source-wordpress" threw an error while running the sourceNodes lifecycle:

Cannot read property 'id' of undefined

TypeError: Cannot read property 'id' of undefined

success source and transform nodes - 19.647 s success building schema - 0.624 s

ERROR #85901 GRAPHQL

There was an error in your GraphQL query:

Cannot query field "allWordpressWpFrontpage" on type "Query".

File: gatsby-node.js:22:24

ERROR #85901 GRAPHQL

There was an error in your GraphQL query:

Cannot query field "allWordpressPage" on type "Query". Did you mean "allSitePage"?

File: gatsby-node.js:22:24

ERROR #85901 GRAPHQL

There was an error in your GraphQL query:

Cannot query field "allWordpressPost" on type "Query".

File: gatsby-node.js:22:24

ERROR #85901 GRAPHQL

There was an error in your GraphQL query:

Cannot query field "allWordpressWpNews" on type "Query".

File: gatsby-node.js:22:24

ERROR #85901 GRAPHQL

There was an error in your GraphQL query:

Cannot query field "allWordpressWpProjects" on type "Query".

File: gatsby-node.js:22:24

ERROR #85901 GRAPHQL

There was an error in your GraphQL query:

Cannot query field "allWordpressWpDirections" on type "Query".

File: gatsby-node.js:22:24

ERROR #11321 PLUGIN

"gatsby-node.js" threw an error while running the createPages lifecycle:

Cannot query field "allWordpressWpFrontpage" on type "Query".

GraphQL request:3:7 2 | { 3 | allWordpressWpFrontpage { | ^ 4 | edges {,Cannot query field "allWordpressPage" on type "Query". Did you mean "allSitePage"?

GraphQL request:14:7 13 | } 14 | allWordpressPage { | ^ 15 | edges {,Cannot query field "allWordpressPost" on type "Query".

GraphQL request:27:7 26 | } 27 | allWordpressPost { | ^ 28 | edges {,Cannot query field "allWordpressWpNews" on type "Query".

GraphQL request:42:7 41 | 42 | allWordpressWpNews { | ^ 43 | edges {,Cannot query field "allWordpressWpProjects" on type "Query".

GraphQL request:59:7 58 | } 59 | allWordpressWpProjects { | ^ 60 | edges {,Cannot query field "allWordpressWpDirections" on type "Query".

GraphQL request:77:7 76 | 77 | allWordpressWpDirections { | ^ 78 | edges {

Error: Cannot query field "allWordpressWpFrontpage" on type "Query". GraphQL request:3:7 2 | { 3 | allWordpressWpFrontpage { | ^ 4 | edges {,Cannot query field "allWordpressPage" on type "Query". Did you mean "allSite Page"? GraphQL request:14:7 13 | } 14 | allWordpressPage { | ^ 15 | edges {,Cannot query field "allWordpressPost" on type "Query". GraphQL request:27:7 26 | } 27 | allWordpressPost { | ^ 28 | edges {,Cannot query field "allWordpressWpNews" on type "Query". GraphQL request:42:7 41 | 42 | allWordpressWpNews { | ^ 43 | edges {,Cannot query field "allWordpressWpProjects" on type "Query". GraphQL request:59:7 58 | } 59 | allWordpressWpProjects { | ^ 60 | edges {,Cannot query field "allWordpressWpDirections" on type "Query". GraphQL request:77:7 76 | 77 | allWordpressWpDirections { | ^ 78 | edges {

tmo207 commented 5 years ago

This a bug in gatsby-source-wordpress. Was fixed in https://github.com/gatsbyjs/gatsby/pull/19331