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

posts/2022/08/mdx-2-breaking-changes-and-gatsby-plugin-mdx-v4/ #2

Open
utterances-bot opened this issue Aug 29, 2022 · 5 comments
Open

Comments

@utterances-bot
Copy link

utterances-bot commented Aug 29, 2022

posts/2022/08/mdx-2-breaking-changes-and-gatsby-plugin-mdx-v4/

If you're upgrading to v4 of
gatsby-plugin-mdx you'll likely run into
errors. Both MDX 2 and v4 of the plugin are major releases and…

https://paulie.dev/posts/2022/08/mdx-2-breaking-changes-and-gatsby-plugin-mdx-v4/

Copy link

For anyone migrating, since the inbuilt parser doesn't help much with the exact location of the markdown parsing error, it does give you the markdown file name.

You can then paste the content of your markdown file (without the frontmatter) here https://mdxjs.com/playground/ and it will actually give you the exact line/column number which helps immensely in debugging/fixing the issue.

@PaulieScanlon PaulieScanlon changed the title Paul Scanlon | MDX 2 Breaking changes and gatsby-plugin-mdx v4 Paul Scanlon | MDX 2 Breaking changes and gatsby-plugin-mdx v4 (Content) Sep 6, 2022
@PaulieScanlon PaulieScanlon changed the title Paul Scanlon | MDX 2 Breaking changes and gatsby-plugin-mdx v4 (Content) mdx-2-breaking-changes-and-gatsby-plugin-mdx-v4 Sep 6, 2022
@PaulieScanlon PaulieScanlon changed the title mdx-2-breaking-changes-and-gatsby-plugin-mdx-v4 MDX 2 Breaking changes and gatsby-plugin-mdx v4 (Content) Sep 6, 2022
@PaulieScanlon PaulieScanlon changed the title MDX 2 Breaking changes and gatsby-plugin-mdx v4 (Content) posts/2022/08/mdx-2-breaking-changes-and-gatsby-plugin-mdx-v4/ Sep 6, 2022
Copy link

Hi! Gatsby also throws this error when there are compatibility issues in plugins.

For example, I'm using remark-grid-tables which is probably not supported for the version of remark (13+) that MDX is using for plugins.

Here's more info on this particular issue: zestedesavoir/zmarkdown#470

Anyway, thanks for the article! I'm currently in the process of migration, so it's really helpful for me.

Copy link
Owner

Hey, looking at the repo for remark-grid-tables it looks like it hasn’t been updated for a few years. It also doesn’t list any peerDependancies.

Here’s some tips for working with community plugins. https://www.gatsbyjs.com/blog/gatsby-plugin-not-working-but-why/

Copy link

Hey Paul, Thanks for this! Are you still considering creating a full-migration article?

Copy link

urre commented Mar 27, 2023

Thanks for this article! Minor typo on eslint npm install. Should be

npm install eslint eslint-plugin-mdx --save-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants