That is quite strange... I was working on a completely different part of the project and out of nowhere, I've started to get this error from different files. I have tested my query on query panel (path /___graphql); working like a charm. I have started to comment out component that giving error, then similar error happened another file.
One of the failed staticQuery that has been working for a long time is :
const Data = useStaticQuery(graphql`
query {
saasClassicJson {
FOOTER_WIDGET {
title
menuItems {
text
url
}
}
}
}
`);
return ...
};
I am using :
- Gatsby CLI 2.12.48
- Gatsby 2.20.29