最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Error in GraphQL query it says Unknown type "ContentfulSizes" - Stack Overflow

programmeradmin5浏览0评论

when I try to link my gatsby project with my self -created Contentful space, it shows this issue all the time

But when I try to link my gatsby to a contentful spaces with I created with their templates or examples, it runs fine

But for self created spaces, it shows this error....

Any solutions?


ERROR #85901 GRAPHQL

There was an error in your GraphQL query:

Unknown type "ContentfulSizes". Did you mean "ContentfulSecondTry", "ContentfulContentType", or "ContentfulSecondTryEdge"?

File: node_modules\gatsby-source-contentful\src\fragments.js:4:46

when I try to link my gatsby project with my self -created Contentful space, it shows this issue all the time

But when I try to link my gatsby to a contentful spaces with I created with their templates or examples, it runs fine

But for self created spaces, it shows this error....

Any solutions?


ERROR #85901 GRAPHQL

There was an error in your GraphQL query:

Unknown type "ContentfulSizes". Did you mean "ContentfulSecondTry", "ContentfulContentType", or "ContentfulSecondTryEdge"?

File: node_modules\gatsby-source-contentful\src\fragments.js:4:46

Share Improve this question asked Jul 4, 2019 at 8:29 Ng Jing XuanNg Jing Xuan 671 gold badge2 silver badges7 bronze badges 1
  • Do you have a type called ContentfulSizes? – ksav Commented Jul 4, 2019 at 17:37
Add a ment  | 

2 Answers 2

Reset to default 8

Go into your Contentful space, click on Media, and add a dummy image just as a placeholder.

For more details read this: https://github./gatsbyjs/gatsby/issues/15344#issuement-508242874

I addition to the answer by Will Sherman, make sure that you publish the image.

On the top right side of the page, you'll see a DRAFT dropdown button. Click on it and select PUBLISH.

Then run gatsby develop again on your local machine

发布评论

评论列表(0)

  1. 暂无评论