-
SummaryI think it's possible to pass a BigInt argument directly to Server Actions, but passing an object with a BigInt value causes a serialization error.
Additional informationNo response ExampleNo response |
Beta Was this translation helpful? Give feedback.
Answered by
icyJoseph
Aug 20, 2025
Replies: 1 comment 4 replies
-
Could you should some pseudocode? I think with a button that calls a server function with bigint as you describe and it worked. What Next.js version did you use? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It works fine on this Stackblitz: https://stackblitz.com/edit/nextjs-zvynquen?file=app%2Fclient.tsx,app%2Factions.ts,app%2Fpage.tsx,app%2Fglobals.css,tsconfig.json
I'll try a local version just in case