Open ds-codemag opened 5 years ago
I found where is the problem.
When I upload image in cockpit panel and add this to image field by 'Select Image' in image url I get only file name with extention e.g. image.jpg.
When I add image by 'Select Asset' in image url I get full url for image but starting from cockpit directory e.g. /cockpit/storage/uploads/2019/10/24/image.jpg.
Value attribute for image filed in graphql query is invisible when the image url is incorrect. When i set image url by 'Enter Image Url' to /storage/uploads/2019/10/24/image.jpg everyting works great and value attribute with publicPath and childImageSharp and others attributes appears in graphql query and it works, image loads with lazy loading and blur effect.
But when i set image url to /storage/uploads/2019/10/24/image.jpg image preview diasppears in cockpit panel.
This same problem is with gallery field type but in this case I cant set image url by 'Enter Image Url' because this option in unavailable in gallery field.
So i think that problem is in cockpit side.
Hi @ds-codemag, I got the same issue, probably because cockpit is installed in a subfolder "cockpit". Did you find a solution for this in the meantime? Thanks
Hello. I'm trying to get image and use
gatsby-transformer-sharp
plugin like in your example from the plugin docs:But in my GraphiQL i don't see the
value
attribute for image field type and can't usechildImageSharp
. I only havetype
attribute. The same problem is in gallery field type.The
value
attribute is available infile
filed type but I can't usechildImageSharp
too.This is screenshot from my GraphiQL:
And this is my
gatsby-config.json
code: