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,
2
Answers
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:
bunx --bun prisma init
(although this did not work for me personally).Yes, downgrading to Node.js v20 worked for me as well.