Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
amiralikul opened this issue Oct 5, 2019 · 1 comment
Open

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

amiralikul opened this issue Oct 5, 2019 · 1 comment

Comments

@amiralikul
Copy link

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

  • normalize.js:286 entity.polylang_translations___NODE.entity.polylang_translations.map.translat ion
    [gatsby_tutorials]/[gatsby-source-wordpress]/normalize.js:286:184

  • Array.map

  • normalize.js:286 entities.map.entity
    [gatsby_tutorials]/[gatsby-source-wordpress]/normalize.js:286:72

  • Array.map

  • normalize.js:284 Object.exports.mapPolylangTranslations.entities [as mapPolylangTranslations]
    [gatsby_tutorials]/[gatsby-source-wordpress]/normalize.js:284:56

  • gatsby-node.js:154 Object.exports.sourceNodes
    [gatsby_tutorials]/[gatsby-source-wordpress]/gatsby-node.js:154:24

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 {

  • gatsby-node.js:135 Object.exports.createPages
    D:/Code/gatsby_tutorials/gatsby-node.js:135:11
@tmo207
Copy link

tmo207 commented Nov 7, 2019

This a bug in gatsby-source-wordpress. Was fixed in gatsbyjs/gatsby#19331

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants