jondubin / gatsby-source-rss

Gatsby source plugin for building websites using RSS feeds as a data source
31 stars 7 forks source link

Unable to find plugin "gatsby-source-rss" #5

Open mittalyashu opened 5 years ago

mittalyashu commented 5 years ago

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

2018-08-29_19-15-30

andrioid commented 5 years ago

I'm pretty sure this module is abandoned. So use it at your own risk.

That said. If you want help:

mittalyashu commented 5 years ago

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'
                        }
                }
  ],
}
jimt commented 5 years ago

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

mittalyashu commented 5 years ago

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

mittalyashu commented 5 years ago

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

andrioid commented 5 years ago

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.

JoshMormann commented 5 years ago

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 commented 5 years ago

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

m4rrc0 commented 5 years ago

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

mittalyashu commented 5 years ago

Thanks for the update @MarcCoet 🙂