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
Querying fixed, fluid, or gatsbyImage nodes of the childImageSharp node of a Craft asset results in an error. #6
Comments
Until the issue with Steps to implement workaround
Steps to reverse workaroundOnce the issue with
|
Okay, so.
I've submitted a bug report in hopes that the current eager behavior can be adjusted since actually removing that field once it's added can get very ugly. Or, well, maybe I just can't figure out how to do it cleanly. Until then, I've pretty much done exactly what @sandren has done, except I went with a Since this is a resolver, if you never touch the I'll leave this issue open for now because part of the issue is the incorrect |
Hi @sandren I just opened pull request with fix for The provided workaround is one that makes sense to me, and maybe the |
This fix has been implemented in |
@andris-sevcenko Is the manual resolver still required? So is this closed with a "Won't fix" sort of closed? Or should this be working where asset images are automatically detected and receive the Edit: This worked for me as soon as I added the resolver. Since this was closed I just wanted to make sure this was the intention. Might be good to clarify this point in the documentation? |
@kara-todd it's not required, not. The sourcing plugin automatically adds a |
Description
The
gatsby-source-craft
plugin makeschildImageSharp
nodes appear in Gatsby's GraphiQL interface, but querying any of the fields within thefixed
,fluid
, orgatsbyImage
nodes results in the following error:Steps to reproduce
gatsby-source-craft
gatsby develop
fixed
,fluid
, orgatsbyImage
nodes of thechildImageSharp
of a Craft CMS asset such as:Additional info
The text was updated successfully, but these errors were encountered: