You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A console log "Hello World!" should be printed in the terminal, instead Failed to find Server Action "[server action id]". This request might be from an older or newer deployment. is shown. Server actions work as usual on canary and release versions (when not using the local version of Next.js) so this is only an issue when using local version of Next.js.
Verify canary release
I verified that the issue exists in the latest Next.js canary release
Which area(s) are affected? (Select all that apply)
Not sure
Additional context
Server actions stopped working after v13.5.5-canary.3 (throws an error). After v13.5.5-canary.5Failed to find Server Action "[server action id]". This request might be from an older or newer deployment. is shown in the terminal (probably #56618).
This is a somewhat minor issue, but it is hard to diagnose issues related to server actions if this does not work (unless there is some workaround or other way of making server actions work when developing with a local version of Next.js).
The text was updated successfully, but these errors were encountered:
I've cloned your repository and tested it with canary version 13.5.7-canary.11, and it worked as expected.
I've also tested it on v13.5.5-canary.3 and v13.5.5-canary.5, and it still worked as expected. So there might be a possibility that the issue is specific to your local environment.
Sorry my bad, it was my local version. It now works after I ran pnpm clean.
However I feel like there should be a mention of the need to run this command when switching versions/pulling down new changes in any of the contributing-guides. I can submit a PR with suggested additions to the docs.
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/viktorronnback/server-actions
To Reproduce
Action
buttonCurrent vs. Expected behavior
A console log "Hello World!" should be printed in the terminal, instead
Failed to find Server Action "[server action id]". This request might be from an older or newer deployment.
is shown. Server actions work as usual on canary and release versions (when not using the local version of Next.js) so this is only an issue when using local version of Next.js.Verify canary release
Provide environment information
Operating System: Platform: linux Arch: x64 Version: #34~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 13:12:03 UTC 2 Binaries: Node: 18.18.2 npm: 10.2.0 Yarn: N/A pnpm: 8.9.0 Relevant Packages: next: 13.5.6 eslint-config-next: N/A react: 18.2.0 react-dom: 18.2.0 typescript: N/A Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Not sure
Additional context
Server actions stopped working after v13.5.5-canary.3 (throws an error). After v13.5.5-canary.5
Failed to find Server Action "[server action id]". This request might be from an older or newer deployment.
is shown in the terminal (probably #56618).This is a somewhat minor issue, but it is hard to diagnose issues related to server actions if this does not work (unless there is some workaround or other way of making server actions work when developing with a local version of Next.js).
The text was updated successfully, but these errors were encountered: