-
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
Error [ValidationError]: "error" must be of type object #214
Comments
Note: when I do provide the Cloudinary config options to the plugin and run |
That is not a great error message, so we'll make sure to fix that - ie. a better error message. However the problem seems to be that your Could you go to your GraphiQL UI (typically http://localhost:8000/___graphql) and check the shape of |
Thank you! Hmm, it looks like it doesn't have a cloud name:
|
And the data is not in the shape required by this plugin (something I hope to make configurable in the future). You'll have to make your own nodes base on these nodes. I can give you an example of how to achieve this tomorrow (CET timezone). |
That would be great, thank you! |
I made a question and answered it here: #215 and keeping this issue to reference when fixing the not optimal error message. Let me know if that works or not. |
) When sourcing data every sourced item might _not_ be be valid. Instead of stopping the build an error will be logged. Make sure to check if `gatsbyImageData` is not null before using in the `GatsbyImage` component. Closes #214
🎉 This issue has been resolved in version 3.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
# [4.2.0](v4.1.0...v4.2.0) (2022-12-20) ### Bug Fixes * gatsbyImageData generates http urls, not https ([#210](#210)) ([3508cd3](3508cd3)), closes [#209](#209) * peer dependency (gatsby-plugin-image) ([#212](#212)) ([3f40130](3f40130)) ### Features * allow invalid source data by making gatsbyImageData nullable ([#218](#218)) ([acf28f9](acf28f9)), closes [#214](#214)
🎉 This issue has been resolved in version 4.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I would be forever grateful if you tested the newest beta nmampersand . It adds support for Sanity sourced Cloudinary assets 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. |
@nmampersand, 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. |
Hello! I am working on a project using Gatsby, Cloudinary, and Sanity and am running into the error with this plugin:
I am only using images already in Cloudinary but have tried configuring it with and without my Cloudinary credentials and receive the same error.
My gatsby-config looks like:
The text was updated successfully, but these errors were encountered: