Has anyone been running Prisma 5.4.2 / @prisma/client 5.4.2 on Node.js 24 in production? #30176
Replies: 3 comments
|
Short version: it will almost certainly run, but "runs" and "supported" are different things here, and the version gap is the actual risk — not Node 24. Why your staging test passedPrisma 5.x loads the Rust query engine as a Node-API library, not as a V8-linked native addon. Node-API is ABI-stable across Node major versions by design, so Why that isn't the same as support
So Node 24 is only explicitly supported from Prisma 7 onward. The risks I'd actually worry about in production
What I'd do
Running 5.4.2 on Node 24 isn't going to blow up on you tomorrow — but you're carrying an unsupported, unpatched combination to save an upgrade that's mostly mechanical. I'd spend the afternoon on 5.22.0. |
|
A staging matrix like the one you ran is honestly worth more than the support table here. The query engine is a self contained native binary and does not embed Node, so the runtime surface that actually cares about the Node version is the JS client layer. Between 5.4 and current Node, that layer's behavior did not change in ways your matrix did not already cover: startup, transactions, raw SQL, Decimal, JSON and concurrency are exactly the risky spots and you tested all of them. A few things I would still add before shipping it:
One more angle worth weighing: 5.4.2 is from 2023. It clearly works, but if you ever hit an engine bug on Node 24 you will be debugging an engine that predates that runtime by two years. Moving to the latest 5.x is usually a drop-in change and gets you engines built and tested much closer to current Node. Not required for this upgrade, but it shrinks the blast radius if anything does go wrong in production. |
|
Prisma 5.4.2 was not built or tested against Node.js 24, and running it there is risky — particularly for the query engine binary. The core issue is that Prisma 5.x ships prebuilt native binaries for the query engine. Node 24 ships with a newer V8 and changed some native addon ABI constraints. Prisma did not publish Node 24-compatible binaries until the 5.x series was well past 5.4.2. What we have seen in practice:
Recommendation: If you cannot upgrade Prisma, stay on Node 20 LTS. Node 20 is supported until April 2026, so you have time. If you want Node 24, upgrade Prisma to at least 5.22+ (which added explicit Node 24 support) or better yet 6.x / 7.x which switched to a TypeScript-first engine and dropped the problematic native binaries entirely. The 5.x → 6.x migration is straightforward for most apps — the main breaking change is the |
Uh oh!
There was an error while loading. Please reload this page.
Has anyone been running Prisma 5.4.2 / @prisma/client 5.4.2 on Node.js 24 in production?
We have an existing mature Next.js application using:
We are evaluating an upgrade from Node 20 to Node 24 while keeping Prisma unchanged.
We already tested Prisma 5.4.2 on Node 24.14.0 in an isolated environment against our staging MariaDB database. The following all passed:
prisma generateNo Prisma engine or OpenSSL errors occurred.
I understand Prisma 5.4.2 predates Node 24 and Node 24 is not explicitly documented as a supported runtime for that Prisma version.
Has anyone used this exact or similar Prisma 5.x + Node 24 combination in production?
If yes:
I'm specifically interested in runtime compatibility issues, not whether upgrading to a newer Prisma version is generally recommended.
All reactions