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
adiguno
adigunoβ€’3y ago
sounds like you don't have a datasource specified, do you have something like this
Unknown User
Unknown Userβ€’3y ago
Message Not Public
Sign In & Join Server To View
taco is a friend of bluey πŸ‡΅πŸ‡ΈπŸ΄
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"
barry
barryβ€’3y ago
And did you install that lol
taco is a friend of bluey πŸ‡΅πŸ‡ΈπŸ΄
yes and I'm still getting an error
Piotrek
Piotrekβ€’3y ago
Did you run npx prisma generate?
taco is a friend of bluey πŸ‡΅πŸ‡ΈπŸ΄
It works now. thx!!
Piotrek
Piotrekβ€’3y ago
No problem πŸ˜„
Want results from more Discord servers?
Add your server