Reputation: 62
There was an error in your GraphQL query:
Unknown type "ContentfulSizes". Did you mean "ContentfulBlogPost", "ContentfulBlogPostSys", "ContentfulContentType", or "ContentfulBlogPostEdge"? File: node_modules\gatsby-source-contentful\src\fragments.js:223:47
I am getting this error, by running the development server of Gatsby after installing and enabling the gatsby-source-contentful plugin.
Upvotes: 1
Views: 161
Reputation: 29320
This is a common issue with Contentful plugin, you can check for further information in this thread of Gatsby GitHub repository.
The solution is to add a dummy image, whatever you like, as a Contentful media. You don't need even to query it, just to add it in Contentful. This will bypass the issue as a temporary workaround while they fix it in further upgrades.
Upvotes: 1
Reputation: 62
The only suitable solution is Delete The following File:
node_modules/gatsby-source-contentful/src/fragments.js
Upvotes: 0