I ran into this in Next.js 15. You need to make sure tsx
is installed globally on a device also it throws you an error with a relative path, so make sure you target the file correctly, in my case I had to switch the command from Prisma docs to this.
"prisma": {
"seed": "tsx seed.ts"
},