prisma: Error: (0 , DSe.isError) is not a function

Bug description

npx prisma init Error: (0 , DSe.isError) is not a function

WHEN EVER I USE this command I am getting this error, I am so struck in here, I read some one mentioned downgrade node version and it would work, BUT IT HAS NOT mate/

I have checked with v20.18.0, v18.20.0 all give the same error

How to reproduce

npm I prisma npx prisma init

Expected behavior

should install Prisma

Prisma information

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

Environment & setup

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

Prisma Version


About this issue

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

Most upvoted comments

When via bunx, the following works:

bunx --bun prisma init --datasource-provider sqlite

runs smoothly if using version 22 LTS

Hey everyone, we’re aware of the problem on Node.js 23 and will ship a fix for it later. For now you can switch to Node.js 22 LTS to avoid the problem.

Note that as per https://www.prisma.io/docs/orm/reference/system-requirements, we only officially support Node.js LTS releases, and there are no guarantees about running Prisma on the latest Current releases.

I’m going to close this issue as a duplicate of https://github.com/prisma/prisma/issues/25463.

@karthik-nair-20 same problem how to solve?

I downgraded node to version v18.20.4, and it works.

Ran into this same error using bun

bunx prisma init returns an error and bunx --bun prisma init --datasource-provider doesn’t return anything

Here’s the corrected version:

I encountered the same error and solved it as follows:

Step 1: Install nvm in the root directory. You can find the command to install nvm in your root directory commands : ->. brew install nvm ->. export NVM_DIR=“$HOME/.nvm” ->. [ -s “$NVM_DIR/nvm.sh” ] && . “$NVM_DIR/nvm.sh” ->. mkdir ~/.nvm ->. export NVM_DIR=~/.nvm ->. source $(brew --prefix nvm)/nvm.sh ->. source your_profile_file (.zprofile, .bashrc, .bash_profile, .profile or .zshrc) ->. nvm ls-remote

Last command ->. nvm install v20.18.0

Step 2: Now hit the command " npx prisma init"

This solution worked for me!

Solution:

instead if npx Prisma init

directly ran ./node_modules/prisma/index