Cannot resolve StaticQuery: JSON file not being generated #34323
Labels
stale?
Issue that may be closed soon due to the original author not responding any more.
topic: remark/mdx
Related to Markdown, remark & MDX ecosystem
type: bug
An issue or pull request relating to a bug in Gatsby
Preliminary Checks
Description
I have a StaticQuery inside a component, which is being imported into an MDX file.
The StaticQuery JSON data is not being generated, meaning that at runtime in dev, I get an error like this:
If I stop the dev server and start it again, the server never starts, instead erroring out with a
ModuleNotFoundError
:The attached minimal reproduction shows this issue.
Reproduction Link
https://github.com/davwheat/gatsby-issue-reproduction-2
Steps to Reproduce
Expected Result
Static Query would be handled correctly and build would not fail.
Actual Result
Build fails as query JSON file doesn't exist.
Environment
Config Flags
None.
The text was updated successfully, but these errors were encountered: