Next.js Discord

Discord Forum

n00b Q: server actions with parameters throw

Nile tilapia posted this in #help-forum
Open in Discord
Nile tilapiaOP
getting this error:
⨯ Internal error: TypeError: Cannot read properties of undefined

if i remove the parameters from the server action it works, but not sure the cause, happens if i import the server action into the client component or if i import into an upper layer server and pass down as props, also using useFormState and passing the return value from useFormState into action prop of form

1 Reply

could you show some code?