gatsby-source-rss icon indicating copy to clipboard operation
gatsby-source-rss copied to clipboard

Unable to find plugin "gatsby-source-rss"

Open mittalyashu opened this issue 6 years ago • 10 comments

Getting this error, even after I have installed the gatsby-source-rss package.

2018-08-29_19-15-30

mittalyashu avatar Aug 29 '18 13:08 mittalyashu

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?

andrioid avatar Aug 29 '18 13:08 andrioid

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'
                        }
                }
  ],
}

mittalyashu avatar Aug 29 '18 13:08 mittalyashu

You don't seem to have a gatsby-source-rss section in your gatsby-config.js plugins array.

jimt avatar Aug 30 '18 01:08 jimt

Yeah, I forget to add that in the above code snippet, but even after that it's not working locally.

mittalyashu avatar Aug 30 '18 14:08 mittalyashu

Anyone has any idea, why I am getting that error.

mittalyashu avatar Sep 01 '18 07:09 mittalyashu

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.

andrioid avatar Sep 01 '18 08:09 andrioid

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.

JoshMormann avatar Oct 31 '18 23:10 JoshMormann

Well that was part of it I think, but now I get worse errors... too much to copy/paste

JoshMormann avatar Oct 31 '18 23:10 JoshMormann

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

m4rrc0 avatar Jan 13 '19 21:01 m4rrc0

Thanks for the update @MarcCoet 🙂

mittalyashu avatar Jan 14 '19 06:01 mittalyashu