WebDevStudios / gatsby-starter-wordpress-graphql

A bare-bones Gatsby starter powered WordPress and WPGraphQL!
https://gatsby-starter-wordpress-graphql.netlify.com/
61 stars 10 forks source link

Add RSS feed support #23

Open gregrickaby opened 5 years ago

gregrickaby commented 5 years ago

Gatsby plugin: https://www.gatsbyjs.org/packages/gatsby-plugin-feed/

mkamranhamid commented 5 years ago

Can i take this issue? or anyone is working on it?

gregrickaby commented 5 years ago

Please, take it @mkamranhamid 😸

gregrickaby commented 5 years ago

I thought I had this querying the data correctly, but when gatsby-plugin-feed tries to loop through the Posts, I get this error when running gatsby build:

ERROR #11321  PLUGIN

"gatsby-plugin-feed" threw an error while running the onPostBuild lifecycle:

Cannot read property 'reduce' of undefined

  TypeError: Cannot read property 'reduce' of undefined

  - gatsby-node.js:183 _callee2$
    [gatsby-starter-wordpress-graphql]/[gatsby-plugin-feed]/gatsby-node.js:183:41

  - next_tick.js:68 process._tickCallback
    internal/process/next_tick.js:68:7

I did open a PR for visibility if anyone wants to try and tackle. #32