The "use server" file can only export async functions. #306
Unanswered
sagar-jani
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Even though I am following an example - https://github.com/TheEdoRan/next-safe-action/blob/main/apps/playground/src/app/(examples)/with-context/edituser-action.ts#L3
This gives me an error - Add "async" to the function declaration or return a Promise.
Here is my action
Here is safe-action
Beta Was this translation helpful? Give feedback.
All reactions