-
Notifications
You must be signed in to change notification settings - Fork 288
Incompatible with next-safe-action #722
Copy link
Copy link
Open
Description
I am trying to use https://github.com/next-safe-action/next-safe-action with Vinext but I am getting this error
12:21:32 AM [vite] Internal server error: unsupported non async function
Plugin: rsc:use-server
File: /Users/[USER]/projects/vinext-nextjs/src/test.action.ts:5:0
1 | "use server";
2 | import { actionClient } from "./lib/safe-action";
3 | export const testAction = actionClient.action(async () => {
| ^
4 | return { message: "Hello, world!" };
5 | });
Steps to reproduce
- Clone https://github.com/LubomirGeorgiev/vinext-next-safe-action
- Run
pnpm dev:vinext
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels