-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot query gatsbyImageData via Cloudinary app on Contentful #238
Comments
Just replicated this issue on a clean Gatsby codebase, a new Contentful space, and a new Cloudinary environment. Confirming that this works as expected:
But this doesn't:
My environment:
|
I'll ask my senior dev to send you an email. I'm sure she would like us to have a chat with you about this problem. It is relevant to our work. |
The shape of contentfulArtworkCloudinaryImageJsonNode does not match the shape that the transformer plugin expects, but you may connect the sourced
Then you'd need to add one level to get the gatsbyImageData query, doing
|
Try this: |
Thank you @AminPainter ! |
I would be forever grateful if you tested the newest beta jasloe. It adds support by letting you configure the mapping of data.
Take a look at the documentation and let me know how it goes so I may improve if needed. |
@jasloe have you been able to test the 4.6.0-beta.1? Looking to make this a current version, but would love an external test before I do. |
I am trying to use this project to transform Cloudinary-hosted images passed through Contentful with unfortunately mixed results.
In short, I have a Contentful environment with a content type ("Artwork"). The content type includes a JSON Object field ("cloudinaryImage") connected to the Contentful Cloudinary app. The app is configured correctly and returning data.
gatsby-config.js
contains:template/artwork.js
contains (simplified for brevity):Looking at the console output,
gatsbyImageData
returnsnull
......and throws an error:
Looking at the stack trace, the error happens here:
Not sure where to go with this. I'm able to query and render CloudinaryMedia to the browser without any problem.
gatsby-plugin-image
is working fine with both Contentful-hosted and locally hosted images.The text was updated successfully, but these errors were encountered: