Help Debugging - data available in Graphql but not during createPages #28616
-
Hello - Does anyone have any recommendation on how to debug data that is available when I query graphql on gatsby develop (eg localhost/__graphql) but isnt always there when createPages is run? I have childimagesharp running over some remote files I've created locally. This childimagesharp-related-query runs fine in __graphql but the same data (ie tracedSVG, srcSet, etc) isnt available when createPages ran. How would I go about troubleshooting this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I would be interested in community feedback on the above - how do you debug child imagesharp type issues? That said, I solved my own - it appears I was following some examples of creating pages which did not await createPage and as a result (presumably) were not awaiting the image creation availability. I added |
Beta Was this translation helpful? Give feedback.
I would be interested in community feedback on the above - how do you debug child imagesharp type issues? That said, I solved my own - it appears I was following some examples of creating pages which did not await createPage and as a result (presumably) were not awaiting the image creation availability. I added
await createPage
and made sure any of those were in for loops and not maps or foreach and the issue cleared