-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
gatsby-plugin-mdx peer dep on mdx-js/mdx must be increased to ^1.5.9 #25691
Labels
type: bug
An issue or pull request relating to a bug in Gatsby
Comments
Thank you for the thorough issue! I'll be opening up a PR shortly to address this. |
My pleasure, and thank you for the PR! |
laurieontech
pushed a commit
that referenced
this issue
Jul 16, 2020
CanRau
added a commit
to GaiAma/gaiama.org
that referenced
this issue
Sep 21, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
So this new call here to
mdx.createCompiler(compilerOptions)
from #25437, which I'm now picking up when upgrading fromgatsby-plugin-mdx
1.2.22 -> 1.2.25 (3 patches), is suddenly causing my build to fail becausemdx.createCompiler
is not a function:Steps to reproduce
Use the plugin with peer dependency
@mdx-js/mdx
at 1.5.8 or less.https://github.com/stefcameron/gatsby-plugin-mdx-peer-repro
Expected result
I did some digging and found this comes from
@mdx-js/mdx
in this PR mdx-js/mdx#1018 from April 21, 2020, which was picked-up in@mds-jx/[email protected]
. You can see that by noting that:This means that, at the least, the peer dependency of
gatsby-plugin-mdx
on@mdx-js/mdx@^1.0.0
should have been bumped to^1.5.9
as of this change.Actual result
Production build (only) fails because
@mdx-js/mdx
peer was < 1.5.9.Environment
The text was updated successfully, but these errors were encountered: