-
Notifications
You must be signed in to change notification settings - Fork 1
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
hero_image field causing missing images/build problems #85
Comments
This is a frustrating one, and is not new - it was a problem when the site was originally being worked on. I did think it was working but I think the recent content uploads have been triggering it again. I've investigated fixing it, but I have not found a better solution than I did originally. The issue seems to be a known problem and any people are reporting it (see issue link above). The dilemma is:
So, our case seems to be exacerbated by the fact that the The best result seems to be to let Gatsby infer this field's type. Consequently, until a solution is found - perhaps an explicit type specification which works - I recommend the following workaround:
Some other problems to avoid:
|
I think I may have found a solution, trawling the web and using some cargo-cult magic incantations. So instead of explicitly defining the
Or leaving it undefined and therefore inferred - unreliably - by Gatsby, define it like this:
That seems to do the job, but it's not very well documented! Clues to this from: https://stackoverflow.com/questions/69738768 Which refers to: gatsbyjs/gatsby#18271 (comment) This is now committed to the code, and seems to be working at the moment, but we should keep an eye on it, especially to check to see if |
Difficulties with a technical aspect of Gatsby means that the build can intermittently fail depending on essentially random factors. If the first article Gatsby sees in the build has this field set, it works as expected; if not, it can fail to build and/or there are no hero images (I don't recall the exact behaviour at the time of writing).
This issue has already had some attention but there is no resolution as yet. See
8f2c730
gatsbyjs/gatsby#3344 (comment)
The text was updated successfully, but these errors were encountered: