TypeError: Cannot read property 'data' of undefined
See original GitHub issuePlease help, i don’t know where is my error… It’s when i try to deploy my site gatsby with netlify
3:58:01 PM: error Plugin gatsby-source-wordpress returned an error
3:58:01 PM:
3:58:01 PM: TypeError: Cannot read property ‘data’ of undefined
3:58:01 PM:
3:58:01 PM: - fetch.js:148
3:58:01 PM: [repo]/[gatsby-source-wordpress]/fetch.js:148:23
3:58:01 PM:
3:58:01 PM: - Generator.throw
3:58:01 PM:
3:58:01 PM: - next_tick.js:68 process._tickCallback
3:58:01 PM: internal/process/next_tick.js:68:7
3:58:01 PM:
3:58:01 PM:
3:58:04 PM: failed during stage ‘building site’: Build script returned non-zero exit code: 1
3:58:01 PM: Skipping functions preparation step: no functions directory set
3:58:01 PM: Caching artifacts
3:58:04 PM: Shutting down logging, 15 messages pending`
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
I’m going to close this issue, as apparently it’s been resolved 😃 Feel free to open it again if you have any more questions.
Thank you for using Gatsby! 💜 💪
This means you don’t have a wordpress instance running at that location. I see it’s a localhost location - you need to change this URL to your deployed wordpress instance when publishing at Netlify.