Closed amcc closed 1 year ago
I was pretty sure a solution for this was fixed with #218, will have a look at what might be the problem.
The error that you are seeing is letting you know the data does not confirm (and it means they should be skipped and resolve to null - not a gatsby image). Thinking they should be warnings instead maybe?
Are the errors happening on the build server, or when you try to build locally?
thanks for the reply - the error is building locally - develop works ok, though the errors above are in develop using graphilql to try to check all 14,000 or so images. I did another test and found that around 13,000 nodes have an image with cloudinary, around 1000 have a medianode node without a cloudinary image - i believe this is the issue, but some of the 404s might mean we have some bad/out of date cloudinary data.
I renamed this one to target the error stopping your build @amcc. Open a new issue if you need a way to conditionally transform, after reading my latest comment in #225
current package versions "gatsby": "^5.3.3", "gatsby-transformer-cloudinary": "^4.3.0", "gatsby-plugin-image": "^3.3.2",
In a previous version of this module there was a setting cloudinaryAssetData that needed to be true in order to transform an existing node into a cloudinaryAsset node. We have a legacy mongoDB site that is set up in this way and we have a media item node type to hold many different kinds of assets, some of which are images which are uploaded to cloudinary on the backend.
After upgrading to gatsby v5 and updating this module i have managed to get images to work in develop, but in build there are a lot of errors around trying to read gatsbyImageData in build, I'm pretty sure this is the build process trying to do something with nodes where we'd previously set cloudinaryAssetData to be false.
Each media item looks like this
if the media item is not an image node, the above cloudinary info will be null and cloudinaryAssetData will be false.
I will try to make a patch - but might need some guidance if possible. Below are some of the errors we're getting in case that helps
running graphql and trying to get all the gatsbyimagedata nodes gives errors like this in graphiQL: