Open zoharsacks opened 5 years ago
@zoharsacks
Hi! Cloud you show your gatsby-config.js
to me?
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
}
}
]
}
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'.gatsby-node.js:20 Object.exports.sourceNodes [gatsby-movie]/[gatsby-source-rss-feed]/gatsby-node.js:20:7 source and transform nodes
api-runner-node.js:110 runAPI [gatsby-movie]/[gatsby]/dist/utils/api-runner-node.js:110:36
api-runner-node.js:187 s [gatsby-movie]/[gatsby]/dist/utils/api-runner-node.js:187:33 source and transform nodes
map.js:27 [gatsby-movie]/[gatsby]/[async]/internal/map.js:27:9
eachOfLimit.js:64 replenish [gatsby-movie]/[gatsby]/[async]/internal/eachOfLimit.js:64:17 source and transform nodes
eachOfLimit.js:49 iterateeCallback [gatsby-movie]/[gatsby]/[async]/internal/eachOfLimit.js:49:17
onlyOnce.js:12 orm nodes ⠂ source and transform nodes source and transform nodes
map.js:29 ⠐ source and transform nodes
util.js:16 tryCatcherdes ⠂ source and transform nodes source and transform nodes
nodeify.js:23 Promise.successAdapter ⠈ source and transform nodes
promise.js:566 Promise._settlePromise [gatsby-movie]/[bluebird]/js/release/promise.js:566:21 source and transform nodes
promise.js:606 Promise._settlePromiseCtx ⠐ source and transform nodes
async.js:138 Async._drainQueue ⠠ source and transform nodes source and transform nodes
async.js:143 Async._drainQueues [gatsby-movie]/[bluebird]/js/release/async.js:143:10
async.js:17 Immediate.Async.drainQueues [as _onImmediate] ⢀ 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
⠄ source and transform nodes
⡀ source and transform nodes `
Expected: site starts
os: windows 10