Closed tobinharris closed 3 years ago
@tobinharris I don't think the error is related to the childMarkdownRemark
, as it references gatsby-image related stuff. Would you mind sharing what your DatoCMS project (project ID or domain are fine) and the complete query that's failing?
You can also send these info from here if you don't want to publicly share them! https://www.datocms.com/support?topics=technical-support/ive-found-a-bug
Thanks @stefanoverna
It's all public info anyway so no problems.
export const query = graphql`
query CaseStudyQuery($slug: String!) {
caseStudy: datoCmsCasestudy(slug: { eq: $slug }) {
seoMetaTags {
...GatsbyDatoCmsSeoMetaTags
}
title
slug
contentNode{
childMarkdownRemark {
html
timeToRead
}
}
heroBannerImage {
url
fluid(maxWidth: 1024, imgixParams: {fm: "jpg", auto: "compress" }) {
...GatsbyDatoCmsFluid_tracedSVG
}
}
client{
companyName
logo {
url
fluid(maxWidth: 1024, imgixParams: {fm: "png", auto: "compress" }) {
...GatsbyDatoCmsFluid_noBase64
}
}
logoLight {
url
fluid(maxWidth: 150, imgixParams: {fm: "png", auto: "compress" }) {
...GatsbyDatoCmsFluid_noBase64
}
fixed(width: 150, imgixParams: {fm: "png", auto: "compress" }) {
...GatsbyDatoCmsFixed
}
}
}
}
}
`
Project ID is pocketworks-web
Thanks
Tobin
I think it's a DatoCMS field that's got a problem.
This works in the __graphql
tool on localhost.
{
datoCmsRadarBlip{
bodyNode{
childMarkdownRemark{
html
}
}
}
}
But this fails
datoCmsCasestudy {
contentNode {
childMarkdownRemark {
html
}
}
}
It turns out it's down to an image in the markdown of the contentNode. I still haven't figured out why markdown with an image is failing, but that seems to be what's causing it. Any help appreciated.
If I take out gatsby-remark-images-datocms
from my config it works. The images in the markdown of my collection no longer kill the site. Any plan to update this library?
Just released gatsby-remark-images-datocms@0.1.0 which solves this issue!
Hi
I've been using DatoCMS for almost a year and recently updated my dependencies, and suddenly some queries aren't working. For example:
The
html
is the problem (if I useid
it's fine). Inspecting the error on the/__graphql
I can see that the problem is this:Any idea what's causing this. Here's my dependencies:
Any help appreciated!