Compatibility issues between gatsby-plugin-mdx v5 and remark-gfm v4 #38789
Labels
status: triage needed
Issue or pull request that need to be triaged and assigned to a reviewer
type: bug
An issue or pull request relating to a bug in Gatsby
Preliminary Checks
Description
I tried to activate remark-Gfm by referring to the https://www.gatsbyjs.com/plugins/gatsby-plugin-mdx/#mdxoptions document.
However, the development build failed with the ERROR #gatsby-plugin-mdx_10001 PLUGIN error.
At first, I thought it was a configuration issue and referred to Github Issue and StackOverflow, but couldn't find anything different.
I thought it was a difference in the environment, so the remark-Gfm versions of the sources that worked normally were 3.0.1, and mine was 4.0.0.
After changing the version to 3.0.1, it was confirmed to work normally.
Accordingly, I am raising an issue as I believe there is a version compatibility issue between gatsby-plugin-mdx and remark-Gfm.
Reproduction Link
https://codesandbox.io/p/devbox/distracted-platform-4nhsw5
Steps to Reproduce
...
Expected Result
When connecting to /post/post-1, the page is displayed normally.
Actual Result
ERROR #gatsby-plugin-mdx_10001 PLUGIN
Failed to compile the file "/workspace/src/posts/post-1.mdx". Original error
message:
Cannot read properties of undefined (reading 'inTable')
Environment
Config Flags
No response
The text was updated successfully, but these errors were encountered: