skip to Main Content

i was trying to build An E-commerce as using next-js, Prisma, PostgreSQL
i followed this steps:
step 1: npx create-next-app@latest .

step 2: npm i --save-dev ts-node

step 3: npm install prisma --save-dev

step 4: npx prisma init --datasource-provider sqlite error occurred here:

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

enter image description here

enter image description here

2

Answers


  1. There seems to be an issue with the Node.js version, and there is a discussion about it in Prisma#25560. Some of the suggested solutions are:

    • Downgrade to Node.js v20.
    • If using Bun, you can try bunx --bun prisma init (although this did not work for me personally).
    Login or Signup to reply.
  2. Yes, downgrading to Node.js v20 worked for me as well.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search