Open nerdogram opened 3 years ago
Hi @alvisanovari, thanks for reporting. I'll be able to look into this in a few days.
Hi @alvisanovari , could you provide more details about this error? I'm assuming, but want to double check, that by Post Body, you mean a Blog Post's Body content. Could you also provide information about the image you uploaded to the Blog Post's Body content? What type of image was it? PNG, JPEG, etc?
I was able to add an image to the Body content then deploy to Netlify so want to see what edge case this might be failing on. Thanks!
These messages usually come from:
try the following:
yarn upgrade-interactive
or https://docs.npmjs.com/cli/v6/commands/npm-updateyarn.lock
and yarn
againYes its in the blog post body. It fails for some images and not others. I gave up trying to debug and just used different images. 🤷
Oh wait I'm being dumb I actually solved this a while back haha. Just change the GraphQL query it doesn't like the GatsbyContentfulFluid_tracedSVG field for some images. Here's an example:
Change
heroImage {
fluid(maxWidth: 350, maxHeight: 196, resizingBehavior: SCALE) {
...GatsbyContentfulFluid_tracedSVG
}
}
description {
To
heroImage {
fluid(maxWidth: 350, maxHeight: 196, resizingBehavior: SCALE) {
...GatsbyContentfulFluid
}
}
description {
It fails for some images and not others.
Can you please open an issue in the Gatsby repository with some example images that fail with GatsbyContentfulFluid_tracedSVG
?
That way we could fix it for u and others :)
Hello, all of my image can be show. I can show an image if I change "position : relative " to comment but the image take his original size. I think it's a absolute or relative problem in CSS.
Aligning images via css can be nasty with gatsby-image. Check the docs here: https://www.gatsbyjs.com/plugins/gatsby-image/
There will be a successor plugin soon, this one should make it much easier:
Hi - it seems the Post Body is not setup to handle any images? I get the following error on the Netlify Build:
Is there a way to fix this? Thanks,