Closed rasulkireev closed 3 years ago
I see that your question is open for a while, but when I tried this plugin today, I ran into the same message and was able to fix it.
When I ran the build for the first time, I overlooked part of the configuration that mentions that the date should be a JavaScript Date object. In my blog posts, my dates are strings, so I had to transform them.
Did you try the following already?
nodeToFeedItem: (node) => ({ title: node.title, date: new Date(node.date), content: node.content })
Nice. I decided to try a fork of this lib and it had all the features that I needed. Thanks for the fix though!!
When I run
gridsome develop
I get the following error:This is how my
gridsome.config.js
looks like:Do you have ideas why this error occurs? Thanks in advance.