Skip to content

[gatsby-source-contentful] Error at fresh installmentΒ #3064

@cpannwitz

Description

@cpannwitz

Hey. I'm currently trying to setup a basic gatsby site with the contentful-source-plugin.
Last week everything went pretty great, until that moment I had to show off my results and - bam - the whole thing went down in 5 minutes. I had no success in recreating and debugging.

Specifically gatsby-source-contentful errors out with the following:
entryItemFields[foreignReference.name].push is not a function

Preconditions:
node -v: 8.9.1
gatsby-cli -v: 1.1.24
gatsby-cource-contentful version: tried everyone from 1.3.20 to 1.3.28

Steps to reproduce:

  1. npm i -g gatsby-cli
  2. gatsby new testdir && cd testdir
  3. yarn add gatsby-source-contentful -S
  4. Editing gatsby-config.js
plugins: [
    {
      resolve: `gatsby-source-contentful`,
      options: {
        spaceId: `MY_CORRECT_SPACEID`,
        accessToken: `MY_CORRECT_ACCESS_TOKEN`,
      },
    },
    `gatsby-plugin-react-helmet`
  ],
  1. (optionally) Editing gatsby-node.js and inserting/editing code from example gatsby-contentful-site

Thanks for any help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    stale?Issue that may be closed soon due to the original author not responding any more.type: bugAn issue or pull request relating to a bug in Gatsby

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions