useStaticQuery fails on allContentfulBlogPost with gatsbyImageData parameters #38899
Replies: 1 comment
-
The issue here was that I had a conflicting query names. You can see above that it was "getPosts", I also had this in a separate hook which was leading to the weird behavior. The fix was either to remove the query name altogether or make it unique. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to get a list of header images from allContentfulBlogPost using Gatsby Image and setting the width and height to 200 like this:
When I add in only one parameter (such as width) everything works fine. When I add in height or any other parameter, everything works until I refresh, and then I get the error:
Then, even if I remove the second parameter, it still breaks.
What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions