bug(gatsby-source-strapi): Image processing breaks when using relation field in Dynamic Zone
- Dominant language
- JavaScript
- Stars
- 57
- Forks
- 37
- PR merge metrics
- No merged PRs in 30d
Description
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**

**PageTemplate query (localFile not found)**

I am running on gatsby-source-strapi v 2.0.0 and strapi 4.1.0
Contributor guide
Assessment
This issue has not been assessed yet.