Unable to import prisma model from db in mutation #2430
-
|
Hi, My schema has a Location model, but I am unable to use its types in a mutation. schema.prisma updateLocation.ts console error - Thanks 🍏 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
|
Usually you need to run If so, then try running |
Beta Was this translation helpful? Give feedback.
-
|
I updated my build script to But a Thanks @coffee-cup! |
Beta Was this translation helpful? Give feedback.
I updated my build script to
yarn migrate:dev && blitz build.But a
TypeError: outputDir.endsWith is not a functionerror was thrown. It was caused by version mismatch of@prisma/clientandprisma, which was resolved by updating both packages to the latest version2.24.0.Thanks @coffee-cup!
☕