#PrismaClient() thing "An argument for 'options' was not provided."

9 messages · Page 1 of 1 (latest)

minor tree
#

Hi, trying to follow a tutorial and i dont understand what is happening or how to fix it :') i tried googling but this is my first time working with prisma

outer bayBOT
#

Howdy, friend! I'm the Prisma AI Help Bot — fast answers from me, or slow, hand-crafted wisdom from a dev? Choose wisely, adventurer.

main bough
#

You are likely using Prisma 7. You need to pass an adpater while initialising Prisma Client

minor tree
#

im pretty sure i did most of the things on the website except this step

#

and for this script ts is it really necessary? if i alreayd have like a database set up id have to tweak it to my database right? is this just a test?

main bough
#

You would need to use the adapter based on the database you are using, there are adapters for all databases like postgres, mysql, sqlserver etc.

And yes it is necessary to instantiate prisma client with adapter starting with Prisma v7

minor tree
#

i see!

#

thank youu