Skip to:
Content

BuddyPress.org

Opened 6 weeks ago

#9253 new defect (bug)

Node 22 breaks

Reported by: sirlouen's profile SirLouen Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 14.2.1
Component: Build/Test Tools Keywords: has-patch
Cc:

Description

Following this:
https://buddypress.trac.wordpress.org/ticket/9047
Suggesting that Node 20+ is the new recommended version, which is wrong.

I tried to run the dev environment with the latest version of Node provided on the site, and I could not execute

npm install

Only to discover that was a node 22 version issue

The problem comes from an incompatibility with node-sass package.

So, currently the only working LTS version is 20 and the version 21 being the max version node version working.

Given that at least for now, node-sass seems to be a requirement in package.json, the simplest soultion I provide is updating both in the docs (/docs/contributor/code/README.md, instead of "latest version", suggest sticking to version 20) and in the package.json file.

More info here about the Node 22 issue here:
https://github.com/sass/node-sass/issues/3415

Attachments (1)

node22-issues.patch (2.9 KB) - added by SirLouen 6 weeks ago.
Patch to edit Node20+ references

Download all attachments as: .zip

Change History (1)

@SirLouen
6 weeks ago

Patch to edit Node20+ references

Note: See TracTickets for help on using tickets.