Skip to content
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

Build fails when calling after in server action #68735

Closed
kevva opened this issue Aug 9, 2024 · 2 comments
Closed

Build fails when calling after in server action #68735

kevva opened this issue Aug 9, 2024 · 2 comments
Labels
bug Issue was opened via the bug report template. locked Partial Prerendering (PPR) Related to Partial Prerendering.

Comments

@kevva
Copy link
Contributor

kevva commented Aug 9, 2024

Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/serene-lalande-zsrhxk

To Reproduce

  1. Run pnpm build

Current vs. Expected behavior

Current behaviour

Following either the .107 or .108 canary, we started seeing errors when server actions were called with after inside them while rendering a PPR page when building the app.

Error: Route / needs to bail out of prerendering at this point because it used unstable_after.

Expected behaviour

This works as before (as in dev) where app builds successfully.

Provide environment information

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:18 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6000
  Available memory (MB): 32768
  Available CPU cores: 10
Binaries:
  Node: 22.6.0
  npm: 10.2.4
  Yarn: 4.3.1
  pnpm: N/A
Relevant Packages:
  next: 15.0.0-canary.110
  eslint-config-next: N/A
  react: 19.0.0-rc-9d2da591-20240808
  react-dom: 19.0.0-rc-9d2da591-20240808
  typescript: 5.5.4
Next.js Config:
  output: standalone

Which area(s) are affected? (Select all that apply)

Partial Prerendering (PPR)

Which stage(s) are affected? (Select all that apply)

next build (local)

Additional context

No response

@kevva kevva added the bug Issue was opened via the bug report template. label Aug 9, 2024
@github-actions github-actions bot added the Partial Prerendering (PPR) Related to Partial Prerendering. label Aug 9, 2024
@kevva
Copy link
Contributor Author

kevva commented Aug 9, 2024

Actually, it's not a bug. The action calls are missing an await so it makes sense that this would error in some way. Adding it fixed it!

@kevva kevva closed this as completed Aug 9, 2024
Copy link
Contributor

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue was opened via the bug report template. locked Partial Prerendering (PPR) Related to Partial Prerendering.
Projects
None yet
Development

No branches or pull requests

1 participant