Can't use npx prisma db seed
Hello, this is what I get from the command
I installed ts-node and added in package.json:
This is the prisma/seed.ts
What is the issue?

4 Replies
Ahoy, knowledge seeker! I'm the Prisma AI Help Bot. Do you want a dev's response that might take a hot second, or an AI answer that's ready before your next coffee sip? Either way, your question is important to us.
What happens if you use
tsx
instead of ts-node
?
Does tsx prisma/seed.ts
also fail?mine is work with tsx "seed": "tsx prisma/seed.ts".
Glad to hear that! You can use
tsx
instead of ts-node
👍