0
votes

I'm new with React and Gatsbyjs. I was able to create a site with the 4 tutorials of the Gatsby website. It's working when my page are js files or Markdown.

I try to install the gatsby-source-wordpress plugins but Gatsby is not able to import the data when I enter gatsby develop.

I see this warning: warning The gatsby-source-wordpress plugin has generated no Gatsby nodes. Do you need it?

Version :

Gatsby = > 1.1.39

Node = > v8.9.4

Mac High Sierra 10.13.3

I'm using a fresh installation of WordPress 4.9.4 on a dreamhost vps host. The website is using https from Let's encript!

This is the message I see in Terminal.

success delete html files from previous builds — 0.010 s
success open and validate gatsby-config.js — 0.003 s
info One or more of your plugins have changed since the last time you ran 
Gatsby. As
a precaution, we're deleting your site's cache to ensure there's not any stale
data
success copy gatsby files — 0.041 s
success onPreBootstrap — 0.007 s
⡀ source and transform nodes -> wordpress__POST fetched : 1
 source and transform nodes -> wordpress__PAGE fetched : 3
⠈ source and transform nodes -> wordpress__wp_media fetched : 1
 ⠂ source and transform nodes -> wordpress__wp_types fetched : 1
 ⡀ source and transform nodes -> wordpress__wp_statuses fetched : 1
⠠ source and transform nodes -> wordpress__wp_taxonomies fetched : 1
⠈ source and transform nodes -> wordpress__CATEGORY fetched : 1
⠂ source and transform nodes -> wordpress__TAG fetched : 0
⡀ source and transform nodes -> wordpress__wp_users fetched : 1
 ⠠ source and transform nodesThe server response was "401 Unauthorized"
Inner exception message : "You are not currently logged in."
⠁ source and transform nodes -> wordpress__wp_comments fetched : 1
⠂ source and transform nodesThe server response was "401 Unauthorized"
Inner exception message : "Sorry, you are not allowed to do that."
error Plugin gatsby-source-wordpress returned an error


TypeError: createNodeId is not a function

- normalize.js:170 
  [web]/[gatsby-source-wordpress]/normalize.js:170:12

- Array.map

- normalize.js:169 Object.exports.createGatsbyIds
[web]/[gatsby-source-wordpress]/normalize.js:169:19

- gatsby-node.js:102 _callee$
[web]/[gatsby-source-wordpress]/gatsby-node.js:102:34

 - next_tick.js:131 _combinedTickCallback
internal/process/next_tick.js:131:7

- next_tick.js:180 process._tickCallback
internal/process/next_tick.js:180:9


warning The gatsby-source-wordpress plugin has generated no Gatsby nodes. Do 
you need it?
success source and transform nodes — 2.165 s
success building schema — 0.149 s
success createLayouts — 0.033 s
success createPages — 0.041 s
success createPagesStatefully — 0.011 s
success onPreExtractQueries — 0.001 s
success update schema — 0.078 s
success extract queries from components — 0.073 s
success run graphql queries — 0.049 s
success write out page data — 0.002 s
success write out redirect data — 0.001 s
success onPostBootstrap — 0.001 s

info bootstrap finished - 8.626 s

  DONE  Compiled successfully in 1955ms                                  
09:32:09


 You can now view gatsby-starter-hello-world in the browser.

  http://localhost:8000/

  View GraphiQL, an in-browser IDE, to explore your site's data and schema

  http://localhost:8000/___graphql

 Note that the development build is not optimized.
 To create a production build, use gatsby build

  WAIT  Compiling...                                                     
  09:32:10

  DONE  Compiled successfully in 83ms  

Can someone can help me?

1

1 Answers

0
votes

Try newer version of gatsby:

npm install --save gatsby@latest