I noticed there's a `.prisma/client` in my `node_m...
# orm-help
k
I noticed there's a
.prisma/client
in my
node_modules
. Should I be importing types from that instead of
@prisma/client
now? It appears that the correct thing to do is import generated types from
.prisma/client
and import everything else I need (like
PrismaClient
) from
@prisma/client
. Is this correct?
n
According to this,
@prisma/client/index.d.ts
 exports `.prisma/client`:
Copy code
export * from '.prisma/client'
This means that you still import 
@prisma/client
 in your own 
.ts
 files:
Copy code
import { PrismaClient } from '@prisma/client'
n
Hey Kent 👋 the
.prisma/client
folder has been introduced quite a long time ago and iirc it’s only there to get around some quirks with package managers that would otherwise prune the
@prisma/client
dependency, but I can validate this with our Engineering team and get back to you.
It appears that the correct thing to do is import generated types from 
.prisma/client
 and import everything else I need (like 
PrismaClient
) from 
@prisma/client
.  Is this correct?
You should be able to entirely ignore the presence of the
.prisma/client
folder and just import everything from
@prisma/client
.
k
Perfect 👍 Thanks