Reputation: 2787
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 :
Upvotes: 4
Views: 1673
Reputation: 3562
Clear your .cache
by running the following command, make sure gatsby CLI is installed globally.
gatsby clean
Upvotes: 3
Reputation: 2787
It appears that problem was about .cache
folder having corrupted build data.
Removing .cache
and re-running project solved the problem.
Upvotes: 3