gatsby-source-rss
gatsby-source-rss copied to clipboard
Unable to find plugin "gatsby-source-rss"
Getting this error, even after I have installed the gatsby-source-rss
package.
I'm pretty sure this module is abandoned. So use it at your own risk.
That said. If you want help:
- What version of Gatsby are you using? This has never been tested for Gatsby v2
- How does your Gatsby configuration files look like?
Gatsby version:
"dependencies": {
"babel-plugin-styled-components": "^1.5.1",
"gatsby": "next",
"gatsby-plugin-manifest": "next",
"gatsby-plugin-offline": "next",
"gatsby-plugin-react-helmet": "next",
"gatsby-plugin-styled-components": "^2.0.11",
"gatsby-source-rss": "^1.0.0",
"prop-types": "^15.6.2",
"react": "^16.4.2",
"react-dom": "^16.4.2",
"react-helmet": "^5.2.0",
"styled-components": "^3.4.2"
}
gatsby-config.js
module.exports = {
siteMetadata: {
title: '',
description: ""
},
plugins: [
'gatsby-plugin-react-helmet',
{
resolve: 'gatsby-plugin-manifest',
options: {
name: 'CodeCarrot',
short_name: 'CodeCarrot',
start_url: '/',
background_color: '#663399',
theme_color: '#00d664',
display: 'minimal-ui',
icon: 'src/images/favicon.png', // This path is relative to the root of the site.
},
},
'gatsby-plugin-offline',
'gatsby-plugin-styled-components',
{
resolve: 'gatsby-source-rss',
options: {
rssURL: 'https://fancypants.io/rss.xml'
}
}
],
}
You don't seem to have a gatsby-source-rss
section in your gatsby-config.js
plugins
array.
Yeah, I forget to add that in the above code snippet, but even after that it's not working locally.
Anyone has any idea, why I am getting that error.
My best guess is that they changed something in gatsby@next that is causing this. I haven't had the time to upgrade my Gatsby site since I contributed to this module.
If you find out what's causing this, please comment back so others can benefit.
I think the problem is that the version of this plugin in npm/yarn is not what you have here, it's got a TODO comment, and that's it.
Well that was part of it I think, but now I get worse errors... too much to copy/paste
Hey, haven't even took 3s to look at the code but just copy/pasting in a local plugin made it work.
Of course you get the deprecation notice about boundActionCreators
if you are on v2 but the fix is just a batch replace away. ;)
@mittalyashu
Thanks for the update @MarcCoet 🙂