gatsbyjs/gatsby

gatsby develop fails with NodeJS 22

Janaka-Steph opened this issue · 1 comments

Preliminary Checks

Description

When using Node 22, gatsby develop fails with this error:

⠹ compile gatsby files
node(5534,0x16fca7000) malloc: Incorrect checksum for freed object 0x14b1a3c00: probably modified after being freed.
Corrupt value: 0x3339643635653838
node(5534,0x16fca7000) malloc: *** set a breakpoint in malloc_error_break to debug
node(5534,0x17a437000) malloc: Incorrect checksum for freed object 0x15b2cb600: probably modified after being freed.
Corrupt value: 0x3339643635653838
⠇ compile gatsby files

Reproduction Link

Steps to Reproduce

n 22
gatsby develop

Expected Result

working

Actual Result

no working

Environment

System:
    OS: macOS 14.6.1
    CPU: (10) arm64 Apple M1 Max
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.7.0 - /usr/local/bin/node
    Yarn: 1.22.19 - ~/.yarn/bin/yarn
    npm: 10.8.2 - /opt/homebrew/bin/npm
  Languages:
    Python: 3.10.7 - /Users/stephane/.pyenv/shims/python
  Browsers:
    Chrome: 128.0.6613.84
    Safari: 17.6
  npmPackages:
    gatsby: ^5.13.7 => 5.13.7
    gatsby-plugin-manifest: ^5.13.1 => 5.13.1
    gatsby-plugin-postcss: ^6.13.1 => 6.13.1
    gatsby-plugin-svgr: ^3.0.0-beta.0 => 3.0.0-beta.0

Config Flags

No

Experiencing the same issue. You can downgrade Node to resolve this, but it seems problematic to have this error on the current version of Node.