[gatsby-source-contentful] Error at fresh installment
See original GitHub issueHey. 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:
- npm i -g gatsby-cli
- gatsby new testdir && cd testdir
- yarn add gatsby-source-contentful -S
- Editing gatsby-config.js
plugins: [
{
resolve: `gatsby-source-contentful`,
options: {
spaceId: `MY_CORRECT_SPACEID`,
accessToken: `MY_CORRECT_ACCESS_TOKEN`,
},
},
`gatsby-plugin-react-helmet`
],
- (optionally) Editing gatsby-node.js and inserting/editing code from example gatsby-contentful-site
Thanks for any help!
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:27 (7 by maintainers)
Top Results From Across the Web
gatsby-source-contentful options error on build - Stack Overflow
You have to set your .env variables in Netlify with GATSBY_ prefix. So, your CONTENTFUL_ID variable will be GATSBY_CONTENTFUL_ID .
Read more >gatsby-source-contentful
gatsby -source-contentful will acquire fresh data, and all ContentfulAsset s will be downloaded and cached again. Sourcing From Multiple Contentful Spaces. To ...
Read more >gatsby-source-contentful - npm
Gatsby source plugin for building websites using the Contentful CMS as a data source. Latest version: 8.3.1, last published: a day ago.
Read more >Delft Students On Software Architecture: DESOSA 2020
Sentry, a system for triaging, analyzing and resolving errors and bugs. ... Gatsby, the free and open source framework based on React 1...
Read more >deal | The Software Report
Arcadia breaks the fossil fuel monopoly by creating unprecedented access to energy data and renewable energy sources through its technology platform, Arc, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just wondering if there had been any updates on this issue. I’m seeing the same thing as soon as I added references into my contentful data. It seems to be happening on build or develop. I tried using the previous method of deleting the redux-state.json in cache then rerunning but it doesn’t seem to make a difference.
@cpannwitz I fully agree. I was able to circumvent the issue for about a day. I had to redo the Content models and content to get it to work. Luckily, I am at testing so this is no big deal. However, once I had the need to edit the content. The issue appeared again.
Like you I noticed the following:
At this point, I would like to know what do we do from here? What is the next step and I’ll take it.