3 Replies
Error
Question
and 'userId' does not exist in type '{ userId?: string | SQL<unknown> | Placeholder<string, any> | undefined; firstName?: string | SQL<unknown> | Placeholder<string, any> | null | undefined; }[]'.ts(2769)I already pass
userId
when inserting, so why do I get this error?Your problem is overload 1
You have to make sure that the value that comes from the form is not a file
interesting
i typecasted all values to string, and overload 1 and 2 are both solved
thanks a lot!