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
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://codesandbox.io/p/devbox/xsdv25
To Reproduce
Try to use
after
fromnext/server
results in errorType error: Module '"next/server"' has no exported member 'after'.
The error seems to be here:
https://github.com/vercel/next.js/blob/canary/packages/next/src/build/webpack/plugins/next-types-plugin/index.ts#L670
Seems to have been missed in #73605
Current vs. Expected behavior
I should be able to import
after
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 24.1.0: Thu Oct 10 21:03:15 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T6000 Available memory (MB): 32768 Available CPU cores: 10 Binaries: Node: 20.18.0 npm: 10.8.2 Yarn: N/A pnpm: 9.12.1 Relevant Packages: next: 15.2.0-canary.19 // Latest available version is detected (15.2.0-canary.19). eslint-config-next: 15.1.3 react: 19.0.0 react-dom: 19.0.0 typescript: 5.5.3 Next.js Config: output: standalone
Which area(s) are affected? (Select all that apply)
Not sure
Which stage(s) are affected? (Select all that apply)
next build (local), next dev (local), next start (local), Vercel (Deployed), Other (Deployed)
Additional context
https://nextjs.org/docs/app/api-reference/functions/after clearly shows
Trying to use
unstable_after
like this (import { unstable_after as after } from 'next/server';
) causes errors:The text was updated successfully, but these errors were encountered: