gatsby-source-craft
gatsby-source-craft copied to clipboard
Trouble with Inconsistent Image Load for Builds
Description
I'm having trouble with builds in that images loaded through localFile.childImageSharp
inconsistently go missing.
In my current builds I get tons (117, to be exact) of this error:
warn [gatsby-plugin-image] Missing image prop
I wonder if it might have something to do with this: https://github.com/craftcms/gatsby-source-craft/issues/6, and that localFile
is a resolver, and that there seem to be issues with creating nodes with resolvers in Gatsby v4?
I'm also now noting this issue: https://github.com/craftcms/gatsby-source-craft/issues/55, where the resolver is mentioned. There used to be a gatsby-source-craft#gatsby-v4
but v3.0.0 says it was about Gatsby v4 support, so I'm guessing that was merged in?
Is there some sort of way to get around this? I've had some success moving queries around but it seems there's not much I can do to consistently get all the images in build unless I start tinkering with the source plugin.
Steps to reproduce
It isn't particularly consistent. I'm generally using localFile.childImageSharp.gatsbyImageData
with the GatsbyImage component and configuration options don't seem to have an effect on it.
Additional info
- Gatsby: ^4.23.1
- React: ^18.2.0
- gatsby-source-craft: ^3.0.0
- Craft version: Craft Pro 4.3.4
- PHP version: 8.0.26
- Database driver & version: PostgreSQL 14.6
- Plugins & versions:
DigitalOcean Spaces Filesystem | 2.0.0 |
---|---|
Feed Me | 5.0.4 |
Formie | dev-craft-4 |
Gatsby Helper | 2.0.1 |
Maps | v4.0.3 |
Navigation | 2.0.14 |
Postmark | 3.0.0 |
Redactor | 3.0.2 |
Scout | 3.0.0 |
SEO | v4.0.3 |
Super Table | 3.0.5 |
Table Maker | 4.0.3 |
Typed link field | 2.1.5 |