-
Couldn't load subscription status.
- Fork 1.4k
Open
Labels
framework/gatsbyGatsby relatedGatsby relatedhelp wantedExtra attention is neededExtra attention is neededkind/bugSomething isn't workingSomething isn't working
Description
Description
The build is failing due to incompatibility between gatsby-plugin-mdx@3.20.0 and gatsby@5.15.0. The plugin requires Gatsby v4 and uses deprecated APIs, causing errors during the build process.
See job logs: https://github.com/layer5io/layer5/actions/runs/18346471007/job/52254360824?pr=6989
Expected Behavior
The build should complete successfully with compatible versions of Gatsby and gatsby-plugin-mdx.
Steps to Reproduce
- Run the site build with the current dependencies.
- Observe the error messages about plugin incompatibility and unknown APIs.
Proposed Solution
- Upgrade
gatsby-plugin-mdxto a version compatible with Gatsby v5 (e.g.,^5.0.0). - Remove or update any deprecated options (
mdxOptions) ingatsby-config.js. - If used, rename any usage of
unstable_shouldOnCreateNodetoshouldOnCreateNodein custom plugins. - For SVG images, replace
childImageSharpqueries withpublicURLas needed.
Screenshots
N/A
Environment:
- Host OS:
- Browser:
References:
Metadata
Metadata
Assignees
Labels
framework/gatsbyGatsby relatedGatsby relatedhelp wantedExtra attention is neededExtra attention is neededkind/bugSomething isn't workingSomething isn't working