PrismaClient() "An argument for 'options' was not provided."
Unanswered
Morelet’s Crocodile posted this in #help-forum
Morelet’s CrocodileOP
trying to follow a tutorial where they made us put this in (first image) however orisma client won’t worn? error or whatever problem is on the second image but idk to do here but when i’m on the localhost it won’t load the page bcs of this problem and i don’t get how to fix it. i have everything from prisma set up i believe but not sure of
39 Replies
which in most cases is the adapter
Otherwise, it won’t know what to connect to.
once this is done it should work
@Morelet’s Crocodile Click to see attachment
Palomino
did you do a .env file
with the config for your db?!
Morelet’s CrocodileOP
yep
Palomino
weird it should be working
can you tey followijg the prisma quickstart guide?!
its like 5 minutes
Morelet’s CrocodileOP
this?
Palomino
yes
Morelet’s CrocodileOP
i ran the command and prisma updated
i hope this isnt gonna screw anything up
i kinda already did this
im at the end
do i just put script ts in the root?
my model for the database looks different so would i need to edit it differently
Morelet’s CrocodileOP
also idk why its saying this
Morelet’s CrocodileOP
Ok
i fixed it
a bunch of stuff
i have new questions
😰
this is in my page tsx
i have this whole thing for addnewrecord but idk why page tsx says they cant find this addnewrecord
do i have to import this into the page? orsomething?
oh
hey i did it
💃