[NEXT-1137] "use server" throws error for destructuring assignment export #49378
Labels
bug
Issue was opened via the bug report template.
linear: next
Confirmed issue that is tracked by the Next.js team.
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
No response
Link to the code that reproduces this issue
https://codesandbox.io/p/sandbox/musing-shockley-gevrg3?file=%2FREADME.md
To Reproduce
Describe the Bug
Only async functions are allowed to be exported in a "use server" file
is thrown at compilation.Expected Behavior
No error should be thrown as only async functions are exported even if through destructuring.
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
NEXT-1137
The text was updated successfully, but these errors were encountered: