#Hello, I have problem with token type

2 messages · Page 1 of 1 (latest)

sour depot
#

token data type do not match
Here are code snippets
error: Type '{ type: "EMAIL"; emailToken: string; userId: number; }' is not assignable to type '(Without<TokenCreateInput, TokenUncheckedCreateInput> & TokenUncheckedCreateInput) | (Without<...> & TokenCreateInput)'.
Type '{ type: "EMAIL"; emailToken: string; userId: number; }' is not assignable to type 'Without<TokenUncheckedCreateInput, TokenCreateInput> & TokenCreateInput'.

pearl gulch
#

Did you run npx prisma db pull and npx prisma generate after modifing your database schema and reatarted your TS server in VSCode?