gatsby-source-strapi icon indicating copy to clipboard operation
gatsby-source-strapi copied to clipboard

Image processing for gatsby image breaks when using relation field in Dynamic Zone

Open IanSpringer opened this issue 1 year ago • 0 comments

Hello,

I understand there was a previous issue where gatsby image processing was not occurring when using images in Dynamic Zone. This bug was fixed in this PR https://github.com/strapi/gatsby-source-strapi/pull/266.

However, I believe I have found a separate instance where gatsby sharp image processing breaks. I have a collection type called PageTemplate. This collection has a dynamic zone called "sections" which contains a few relations to other collection types. For example, the statsModule (labeled Stats in the Dynamic Zone) is a relation field that contains some images. However, when I query the PageTemplate, I cannot access the localFile field for the images within the Stats section.

PageTemplate setup in strapi Screen Shot 2022-07-20 at 2 06 03 PM

PageTemplate query (localFile not found) Screen Shot 2022-07-20 at 2 05 41 PM

I am running on gatsby-source-strapi v 2.0.0 and strapi 4.1.0

IanSpringer avatar Jul 20 '22 21:07 IanSpringer