mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[GH-ISSUE #722] Incompatible with next-safe-action #154
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#154
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @LubomirGeorgiev on GitHub (Mar 30, 2026).
Original GitHub issue: https://github.com/cloudflare/vinext/issues/722
I am trying to use https://github.com/next-safe-action/next-safe-action with Vinext but I am getting this error
Steps to reproduce
pnpm dev:vinext@southpolesteve commented on GitHub (Mar 31, 2026):
I think this might be a broader issue. Put up what I think fixes here: https://github.com/cloudflare/vinext/pull/731
Root cause was that
@vitejs/plugin-rscrejects file-level"use server"exports when the exported value is a wrapped async action, for example:@southpolesteve commented on GitHub (Mar 31, 2026):
@hi-ogawa any insight from the
@vitejs/plugin-rscperspective? I wonder if this is actually better fixed thereBackground:
wrap-exportpath.@vitejs/plugin-rsc0.5.21 on what looks like the client proxy path.Repro shape:
@hi-ogawa commented on GitHub (Mar 31, 2026):
That's what https://github.com/vitejs/vite-plugin-react/pull/754/ is intended to allow, so if not, it's likely a bug.
@james-elicx commented on GitHub (Mar 31, 2026):
I've just been looking through this, and it seems that differs from the proxy-export.ts file, so I've put up a PR to align them with the thought that it might fix the issue.
@james-elicx commented on GitHub (Apr 10, 2026):
The change in the RSC plugin was released as part of 0.5.22 - would you be able to try out the latest version and see if that helps with your issue?
@LubomirGeorgiev commented on GitHub (Apr 13, 2026):
@james-elicx Yes it seems to be working now.
What about https://github.com/cloudflare/vinext/pull/731? Does it need to be merged as well?
@james-elicx commented on GitHub (Apr 13, 2026):
Thanks for checking - glad to hear all is working!
#731 doesn't need to be merged as it was a workaround for the behaviour in the RSC plugin, which has now been fixed upstream instead.