Just started trying to learn prisma through the docs and I'm getting an error
When I run "$ npx prisma migrate dev --name init", the terminal returns "Error: Couldn't find a datasource in the schema.prisma file"
8 Replies
sounds like you don't have a datasource specified, do you have something like this
Unknown Userβ’3y ago
Message Not Public
Sign In & Join Server To View
I deleted it because I thought it was just example code face palm
ok so now I'm getting "Cannot find module '@prisma/client' or its corresponding type declarations
" on
import {PrismaClient} from "@prisma/client"
And did you install that lol
yes and I'm still getting an error
Did you run
npx prisma generate
?It works now. thx!!
No problem π