-
Notifications
You must be signed in to change notification settings - Fork 26.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
server actions on next@^14.1.1 doesn't transform/work correctly #63603
Comments
maybe it's related to #61001 |
I have the same issue, server actions seem to return promises when they returned the promised object in the past? (my version is 14.1.4)
used to work, but now I need to do:
|
this issue is still valid on next@14.2.0 |
Hey @shuding, |
I’ll take a look at the compilation issue! @georgesmahl that is the expected behavior:
|
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Link to the code that reproduces this issue
https://github.com/erfanium/nextjs-actions-error-reproduction
To Reproduce
I made a reproduction repo for this issue: https://github.com/erfanium/nextjs-actions-error-reproduction. You can just start this app and click on the button on the page and see the unexpected error.
if you want to do it from scratch and not using my reproduction repo:
Current vs. Expected behavior
expected behavior is to this code should work without any error like older next versions (older than 14.1.2)
Provide environment information
this affected
Operating System: Platform: linux Arch: x64 Version: #40-Ubuntu SMP PREEMPT_DYNAMIC Tue Nov 14 14:18:00 UTC 2023 Binaries: Node: 20.9.0 npm: 10.1.0 Yarn: 1.22.19 pnpm: 8.12.1 Relevant Packages: next: 14.2.0 eslint-config-next: N/A react: 18.2.0 react-dom: 18.2.0 typescript: 5.4.3 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Not sure
this affected
Which stage(s) are affected? (Select all that apply)
next dev (local), next start (local)
Additional context
The text was updated successfully, but these errors were encountered: