Hi there, I followed the Next Vercel tutorial but ...
# orm-help
n
Hi there, I followed the Next Vercel tutorial but made some modifications, and when I deploy to Vercel, the build on Vercel fails with this error:
Copy code
Type error: Property 'event' does not exist on type 'PrismaClient<PrismaClientOptions, never, RejectOnNotFound | RejectPerOperation | undefined>'.
It points to this line:
Copy code
return prisma.event.findUnique({
This works fine in my local dev. Any ideas why it won't deploy? Is Vercel maybe caching some build stuff so it can't see the new prisma model?
Oh doing redeploy and not checking the "Use build cache" fixed it. Weird. Is there someway to tell Vercel not to cache prisma. Or should prisma work with vercel cache?
n
Thank you very much @janpio! Your answer helps me figure out that's exactly what the issue was, I thought I just got lucky by making things retry.
👍 1