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
2 Answers
Reset to default 8Go 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条)