Giter VIP home page Giter VIP logo

Comments (10)

fransachmadhw avatar fransachmadhw commented on June 13, 2024 3

Owhhh. I found the solution. You probably haven't published your author profile photo at graphCMS. The photo is still a draft. That's why the error occurs

from project_graphql_blog.

Beefy-py avatar Beefy-py commented on June 13, 2024

You probably forgot to fetch the photo in the graphQL query

from project_graphql_blog.

fransachmadhw avatar fransachmadhw commented on June 13, 2024

You probably forgot to fetch the photo in the graphQL query

Me too. I already fetched the photo correctly. But, still get the same error

from project_graphql_blog.

bintang-prayoga avatar bintang-prayoga commented on June 13, 2024

Owhhh. I found the solution. You probably haven't published your author profile photo at graphCMS. The photo is still a draft. That's why the error occurs

i already have my photo published but it still doesn't work...

from project_graphql_blog.

fransachmadhw avatar fransachmadhw commented on June 13, 2024

Owhhh. I found the solution. You probably haven't published your author profile photo at graphCMS. The photo is still a draft. That's why the error occurs

i already have my photo published but it still doesn't work...

Check all of your assets again in GraphCMS

from project_graphql_blog.

aliarnoos avatar aliarnoos commented on June 13, 2024

I'm facing the same problem. If your found a fix could you post it? please
Thank you

from project_graphql_blog.

AkshayEddula avatar AkshayEddula commented on June 13, 2024

Go to assets section and select the images and Publish Them

from project_graphql_blog.

AmAnpreet235 avatar AmAnpreet235 commented on June 13, 2024

I m getting the same issue .any one can help?

from project_graphql_blog.

aliarnoos avatar aliarnoos commented on June 13, 2024

the issue is from the cms. although you have published the article you have to make sure to publish the image too. The image is probably an a pending mood waiting to be published

from project_graphql_blog.

Beefy-py avatar Beefy-py commented on June 13, 2024

Instead of getting the photo url like a property, try to call the url method on it like so

   src={urlForSanityImage(post.mainImage).width(200).url()}

urlForSanityImage is a function I export from a file with the following contents:

export const urlForSanityImage = (source: any) => {
  return builder.image(source);
};

from project_graphql_blog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.