Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility issues between gatsby-plugin-mdx v5 and remark-gfm v4 #38789

Open
2 tasks done
comnori opened this issue Dec 30, 2023 · 0 comments
Open
2 tasks done

Compatibility issues between gatsby-plugin-mdx v5 and remark-gfm v4 #38789

comnori opened this issue Dec 30, 2023 · 0 comments
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

Comments

@comnori
Copy link

comnori commented Dec 30, 2023

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

  1. yarn add gatsby-plugin-mdx remark-gfm
  2. https://www.gatsbyjs.com/plugins/gatsby-plugin-mdx/#mdxoptions Set according to the document
  3. gatsby develop
  4. Error occurred
  5. Change to remark-gfm v3 version
  6. works normally
    ...

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

System:
    OS: Linux 5.15 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish)
    CPU: (4) x64 AMD Ryzen 7 3700X 8-Core Processor
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 20.10.0 - /usr/local/share/nvm/versions/node/v20.10.0/bin/node
    Yarn: 1.22.21 - /usr/local/share/nvm/versions/node/v20.10.0/bin/yarn
    npm: 10.2.3 - /usr/local/share/nvm/versions/node/v20.10.0/bin/npm
  npmPackages:
    gatsby: ^5.13.0 => 5.13.1
    gatsby-plugin-google-gtag: ^5.13.0 => 5.13.0
    gatsby-plugin-image: ^3.13.0 => 3.13.0
    gatsby-plugin-manifest: ^5.13.0 => 5.13.0
    gatsby-plugin-mdx: ^5.13.0 => 5.13.0
    gatsby-plugin-sharp: ^5.13.0 => 5.13.0
    gatsby-plugin-sitemap: ^6.13.0 => 6.13.0
    gatsby-remark-katex: ^7.13.0 => 7.13.0
    gatsby-remark-prismjs: ^7.13.0 => 7.13.0
    gatsby-source-filesystem: ^5.13.0 => 5.13.0
    gatsby-transformer-remark: ^6.13.0 => 6.13.0
    gatsby-transformer-sharp: ^5.13.0 => 5.13.0

Config Flags

No response

@comnori comnori added the type: bug An issue or pull request relating to a bug in Gatsby label Dec 30, 2023
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Dec 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

1 participant