I see this input from prisma.d.ts. How can i use i...
# orm-help
j
I see this input from prisma.d.ts. How can i use it? I've tried as below
import { Prisma } from '@prisma/client'
but I got this error What wrong with me?
i
have you tried restarting VS Code? I had similar issue once I regenerated prisma client after schema change. VS Code didn't just get that change iinitially.
j
I've tried restart but it still there
d
I don't see any error?
a
Hey John 👋 , Could you try running the
TypeScript: Restart TS Server
command from VS Code? First you have to bring up the command palette with
Ctrl/Cmd + Shift + P
.
j
@David Marr it is
Property 'ServiceCreateInput' does not exist on type 'typeof Prisma'.ts(2339)
@Austin It still there
a
It looks like you might be trying to use
ServiceCreateInput
as the value of the
type
property. Types cannot be used as values and will cause this error. Are you trying to pass the type as an argument to a function?