fix(gatsby-plugin-mdx): Img w/ lessBabel option in src/pages not working #31210
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
While working on my own site I noticed a bug:
gatsby-remark-images
withgatsby-plugin-mdx
lessBabel: true
optionsrc/pages/art/index.mdx
When running
gatsby develop
the process failed onTypeError: getNode is not a function
on this line:gatsby/packages/gatsby-remark-images/src/index.js
Line 132 in 3bcb6e2
All the helper functions including
getNode
wereundefined
.I don't understand why they are not all passed down anyways but for now I only added
getNode