I have been trying this for some time, unfortunately had no luck. Please help! Thanks!
Also, there was no Wordpress Tags on my website, it was throwing an error. So, I create two tags and it got fetched.
`
You should put resolve() after createPage function
For example,
exports.createPages = ({ graphql, boundActionCreators }) => {
const { createPage } = boundActionCreators;
return new Promise((resolve, reject) => {
createPage({
path: '/someroute',
component: path.resolve('./src/component.jsx'),
context: {
slug: 'Hello World',
},
});
resolve()
}
}
@aks84 I was having the same issue and @gapgag55's solution worked for me.
Added resolve() to the gatbsy-node.js file, just after line 128 (// === END TAGS ===).
Due to the high volume of issues, we're closing out older ones without recent activity. Please open a new issue if you need help!
Most helpful comment
You should put
resolve()after createPage functionFor example,