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•2y ago
sounds like you don't have a datasource specified, do you have something like this
Unknown User
Unknown User•2y 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•2y ago
And did you install that lol
taco is a friend of bluey 🥥🌴
yes and I'm still getting an error
Piotrek
Piotrek•2y ago
Did you run npx prisma generate?
taco is a friend of bluey 🥥🌴
It works now. thx!!
Piotrek
Piotrek•2y ago
No problem 😄
Want results from more Discord servers?
Add your server