gatsbyImageData return a wrong structs for some images
Bogdan1001 opened this issue · comments
Hello,
We've a problem with some images that were loaded from gatsbyImageData.
Getting the next error at console: [gatsby-plugin-image] Missing image prop
looks like the images which are not loaded don't contains fallback:
field:
above you can see the first struct have fallback and successfully fetched via getImage and latter pasted to GatsbyImage and appeared on front. But the second struct is invalid and return gatsby-plugin-image] Missing image prop
here are two images to reproduce
And by this query I fetch the images.
query MyQuery {
allGraphCmsAsset {
nodes {
gatsbyImageData
}
}
}
ok can close the issue, it was fixed after I used the image directly without getImage(gatsbyImageData);