prisma: prisma init error (node v 23)

Bug description

$ npx prisma init (node:10452) ExperimentalWarning: Support for loading ES Module in require() is an experimental feature and might change at any time (Use node --trace-warnings ... to show where the warning was created) Error: (0 , DSe.isError) is not a function

but is working version 21

How to reproduce

Expected behavior

No response

Prisma information

// Add your schema.prisma
// Add your code using Prisma Client

Environment & setup

  • OS:
  • Database:
  • Node.js version:

Prisma Version

    "prisma": "^5.21.1",

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 17
  • Comments: 18 (1 by maintainers)

Most upvoted comments

Had to downgrade my node version from v23.0.0 to v20.18.0. I think try downgrading, this may solve the issue.

Downgrading node to v20.18.0 worked for me as well.

Hi, Alberto from Prisma here. Node.js 23 is not stable, and Prisma isn’t tested against it: https://www.prisma.io/docs/orm/reference/system-requirements. A good rule of thumb is to only use Node.js versions with even numbers, e.g. Node.js 18.x.y or 20.x.y. Even better if you use an LTS version, as suggested above.

Ultimately, we recommend opening an issue in Node.js’ repository directly.

For it works.

v22.12.0