TARS
Explore posts from serversPPrisma
•Created by TARS on 8/2/2024 in #help-and-questions
npx prisma generate wont update the Product model.
Hey, I'm working on a simple e-commerce with next.js/prisma. And when I update the Product model the client doesn't update the types for Product.
Here is the prisma.schema model Product:
Here is what I get from importing the Product type from @prisma/client
When I migrate the new schema to the db, it successfully reflects the changes I made to Product model, the media relation.
I've deleted modules, reinstalled the client, rebooted the computer. What can I try more?
4 replies
KKinde
•Created by TARS on 2/6/2024 in #💻┃support
Can't get the user info from const { getUser } = getKindeServerSession();
I must be totally braindead but I'm just trying to get the information about the user in this way. Using next.js.
import { getKindeServerSession } from "@kinde-oss/kinde-auth-nextjs/server";
Property 'email' does not exist on type 'Promise<KindeUser | null>'. Isn't it supposed to be an object? I'm logged in and everthing.
I'm every writing exactly as Josh tried coding does
27 replies