Skip to content
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

bug(gatsby-source-strapi): Image processing breaks when using relation field in Dynamic Zone #336

Open
IanSpringer opened this issue Jul 20, 2022 · 2 comments

Comments

@IanSpringer
Copy link

IanSpringer commented Jul 20, 2022

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 gatsby-uc/gatsby-source-strapi#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

@LiamWinterton
Copy link

Hi, I have the exact same issue as you.

I'm disappointed this hasn't been picked up by the dev team as for me this is a fairly major issue.

@moonmeister moonmeister transferred this issue from gatsby-uc/gatsby-source-strapi Dec 27, 2022
@moonmeister moonmeister added the bug Something isn't working label Dec 27, 2022
@moonmeister moonmeister changed the title Image processing for gatsby image breaks when using relation field in Dynamic Zone bug(gatsby-source-strapi): Image processing breaks when using relation field in Dynamic Zone Dec 27, 2022
@laurenskling
Copy link
Contributor

Are you sure the image relations have been populated in your queryParams? Images in DZ's are working perfectly for me

@laurenskling laurenskling added needs-reproduction and removed bug Something isn't working labels Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants