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

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

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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744835640a4596244.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信