mottox2 / gatsby-source-rss-feed

Gatsby source plugin for rss feed.
https://www.npmjs.com/package/gatsby-source-rss-feed
24 stars 6 forks source link

plugin fails on sample run #2

Open zoharsacks opened 5 years ago

zoharsacks commented 5 years ago

when running plugin example (gatsby develope) from the documentation the following error occurs

`error Plugin gatsby-source-rss-feed returned an error ⠁ source and transform nodes

TypeError: Cannot destructure property createNode of 'undefined' or 'null'.

⡀ source and transform nodes ⠄ source and transform nodes

⡀ source and transform nodes

⢀ source and transform nodes ⢀ source and transform nodes ⠠ source and transform nodes

⠐ source and transform nodes

⠈ source and transform nodes

⠁ source and transform nodes

⠂ source and transform nodes

⠄ source and transform nodes

⡀ source and transform nodes

⢀ source and transform nodes

⠠ source and transform nodes ⡀ source and transform nodes

⠈ source and transform nodes

⠁ source and transform nodes

⠂ source and transform nodes

⠄ source and transform nodes

⡀ source and transform nodes

⢀ source and transform nodes

⠠ source and transform nodes

⠐ source and transform nodes

⠈ source and transform nodes

⠁ source and transform nodes

⠂ source and transform nodes

⠄ source and transform nodes

⡀ source and transform nodes `

Expected: site starts

os: windows 10

mottox2 commented 5 years ago

@zoharsacks Hi! Cloud you show your gatsby-config.js to me?

mxmilkiib commented 5 years ago

I'm getting this error;

  TypeError: Cannot destructure property `createNode` of 'undefined' or 'null'.

  - gatsby-node.js:71 Object.exports.sourceNodes
    [la-test]/[gatsby-source-rss-feed]/gatsby-node.js:71:7

  - api-runner-node.js:110 runAPI
    [la-test]/[gatsby]/dist/utils/api-runner-node.js:110:36

  - api-runner-node.js:187 
    [la-test]/[gatsby]/dist/utils/api-runner-node.js:187:33
...

Config is;

module.exports = {
  siteMetadata: {
    title: 'Linux Audio Test',
    author: 'Milk Brewster',
    description: 'A starter site demonstrating what Gatsby can do.',
    siteUrl: 'https://gatsbyjs.github.io/gatsby-starter-blog/',
  },
  pathPrefix: '/la-test',
  plugins: [
    {
      resolve: `gatsby-source-filesystem`,
      options: {
        path: `${__dirname}/src/pages`,
        name: 'pages',
      },
    },
    {
      resolve: `gatsby-transformer-remark`,
      options: {
        plugins: [
          {
            resolve: `gatsby-remark-images`,
            options: {
              maxWidth: 590,
            },
          },
          {
            resolve: `gatsby-remark-responsive-iframe`,
            options: {
              wrapperStyle: `margin-bottom: 1.0725rem`,
            },
          },
          'gatsby-remark-prismjs',
          'gatsby-remark-copy-linked-files',
          'gatsby-remark-smartypants',
        ],
      },
    },
    `gatsby-transformer-sharp`,
    `gatsby-plugin-sharp`,
    {
      resolve: `gatsby-plugin-google-analytics`,
      options: {
        //trackingId: `ADD YOUR TRACKING ID HERE`,
      },
    },
    `gatsby-plugin-feed`,
    `gatsby-plugin-offline`,
    `gatsby-plugin-react-helmet`,
    {
      resolve: 'gatsby-plugin-typography',
      options: {
        pathToConfigModule: 'src/utils/typography',
      },
    },
    {
      resolve: 'gatsby-source-rss-feed',
      options: {
        url: 'http://planet.linuxaudio.org/atom.xml',
        name: 'Planet Linux Audio',
        // Optional
        // Read parser document: https://github.com/bobby-brennan/rss-parser#readme
      }
    }
  ]
}