-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Description
I am trying to build my first gatsby powered site, using my current WordPress site (1000 posts and almost 3000 pictures) as a source for gatsby and I cannot get it to build. So far I have just the basic site generated by gatsby new and the gatsby-source-wordpress plugin. My gatsby site is published here https://github.com/scruffydan/MindofDan
Description
gatsby develop doesn't complete
This is what I get:
=END PLUGIN=====================================: 33804.250ms
error Plugin gatsby-source-wordpress returned an error
TypeError: Cannot read property 'id' of undefined
- normalize.js:275
[MindofDan]/[gatsby-source-wordpress]/normalize.js:275:9
- Array.map
- normalize.js:270 Object.exports.mapElementsToParent
[MindofDan]/[gatsby-source-wordpress]/normalize.js:270:19
- gatsby-node.js:142 _callee$
[MindofDan]/[gatsby-source-wordpress]/gatsby-node.js:142:34
- next_tick.js:61 process._tickCallback
internal/process/next_tick.js:61:11
⠠ source and transform nodes
I am using verboseOutput: true and concurrentRequests: 10.
It just hangs at source and transform nodes and never completes. I have left it running for 12 hours.
However I don't always get the TypeError: Cannot read property 'id' of undefined error, sometimes it just hangs at source and transform nodes.
Steps to reproduce
Clone the repo https://github.com/scruffydan/MindofDan
run npm install
run gatsby develop
Expected result
The site should build
Actual result
gatsby hangs and doesn'tcomplete
Environment
- Gatsby version (
npm list gatsby): [email protected] - gatsby-cli version (
gatsby --version): 1.1.52 - Node.js version: 10.1.0
- Operating System: macOS 10.13.4
File contents (if changed)
gatsby-config.js:
module.exports = {
siteMetadata: {
title: 'Gatsby Default Starter',
},
plugins: [
'gatsby-plugin-react-helmet',
{
resolve: 'gatsby-source-wordpress',
options: {
baseUrl: 'mind.ofdan.ca',
protocol: 'https',
concurrentRequests: 10,
hostingWPCOM: false,
useACF: false,
verboseOutput: true
}
}
]
}
package.json:
{
"name": "mind.of.dan",
"description": "Mind of Dan built with Gatsby",
"version": "0.1.0",
"author": "Dan Moutal",
"dependencies": {
"gatsby": "^1.9.259",
"gatsby-link": "^1.6.44",
"gatsby-plugin-react-helmet": "^2.0.11",
"gatsby-source-wordpress": "^2.0.84",
"react-helmet": "^5.2.0"
},
"keywords": [
"gatsby",
"WordPress"
],
"license": "MIT",
"scripts": {
"build": "gatsby build",
"develop": "gatsby develop",
"format": "prettier --write 'src/**/*.js'",
"test": "echo \"Error: no test specified\" && exit 1"
},
"devDependencies": {
"prettier": "^1.12.1"
}
}
gatsby-node.js: N/A
gatsby-browser.js: N/A
gatsby-ssr.js: N/A
Thanks in advance