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

RangeError: /node_modules/gatsby-plugin-mdx/index.js: Maximum call stack size exceeded #34823

Closed
2 tasks done
t2ca opened this issue Feb 15, 2022 · 2 comments
Closed
2 tasks done
Labels
topic: remark/mdx Related to Markdown, remark & MDX ecosystem type: bug An issue or pull request relating to a bug in Gatsby

Comments

@t2ca
Copy link
Contributor

t2ca commented Feb 15, 2022

Preliminary Checks

Description

Upgrading @babel/core to the latest version 7.17.3 will give you the following error

ModuleBuildError: Module build failed (from ./node_modules/gatsby/dist/utils/babel-loader.js):
  RangeError: /node_modules/gatsby-plugin-mdx/index.js: Maximum call stack size exceeded

This is an issue getting addressed here babel/babel#14273

If you are currently having this issue with your gatsby project, there is a temporary solution by adding the following to your package.json file

  "resolutions": {
    "@babel/core": "7.17.2"
  }

Reproduction Link

https://github.com/gatsbyjs/gatsby/

Steps to Reproduce

  1. yarn upgrade
  2. gatsby develop

Expected Result

no error

Actual Result

ModuleBuildError: Module build failed (from ./node_modules/gatsby/dist/utils/babel-loader.js):
  RangeError: /node_modules/gatsby-plugin-mdx/index.js: Maximum call stack size exceeded

Environment

System:
    OS: macOS 12.1
    Shell: 5.8 - /usr/local/bin/zsh
  Binaries:
    Node: 17.4.0 - /usr/local/bin/node
    Yarn: 1.22.17 - /usr/local/bin/yarn
    npm: 8.4.0 - /usr/local/bin/npm

Config Flags

No response

@t2ca t2ca added the type: bug An issue or pull request relating to a bug in Gatsby label Feb 15, 2022
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Feb 15, 2022
BojanStipic added a commit to BojanStipic/website that referenced this issue Feb 15, 2022
@nicolo-ribaudo
Copy link

We released the fix in @babel/core 7.17.4, sorry!

@t2ca
Copy link
Contributor Author

t2ca commented Feb 15, 2022

Thank you!

@t2ca t2ca closed this as completed Feb 15, 2022
@LekoArts LekoArts added topic: remark/mdx Related to Markdown, remark & MDX ecosystem and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Feb 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: remark/mdx Related to Markdown, remark & MDX ecosystem type: bug An issue or pull request relating to a bug in Gatsby
Projects
None yet
Development

No branches or pull requests

3 participants