hello here is a sample of my code. the code is wor...
# orm-help
p
hello here is a sample of my code. the code is working in deployment, but not working in production. const community = await prisma.community.update({ where: { adminId: commAdmin, }, data: { members: { set: [{ id: session.user.id }], }, }, }) it brought out this error while I was trying to deploy Type error: Property 'id' does not exist on type '{ name?: string; email?: string; image?: string; }'. what do I do?
✅ 1
👀 1
s
did you set "postinstall": "npx prisma generate" in your package.json?
n
It could be that your Prisma Client is not in sync with Prisma Schema.
npx prisma generate
should sync them. If you still face this error, could you share your schema file so that we could have a look?
p
It is now working I use npx prisma generate
Thanks @Nurul
🙌 1