-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Description
Link to the code that reproduces this issue
https://github.com/techotaku1/gonzaapp
To Reproduce
- git clone https://github.com/techotaku1/gonzaapp
- cd gonzaapp
- npm install
- Set the Clerk test env vars (sample keys included in .env)
- npm run build -- --debug-prerender
- Observe the failure while prerendering /sign-in/[[...sign-in]]
Current vs. Expected behavior
Current:
Build fails with “Route "/sign-in/[[...sign-in]]": Uncached data was accessed outside of ” even though /sign-in is a client component wrapped in Suspense and contains no server-side data fetch.
Expected:
With cacheComponents enabled, the build should succeed (or at least fallback to “Cargando...”) without aborting.
Provide environment information
Operating System:
Platform: win32
Arch: x64
Version: Windows 11 10.0.22631
Binaries:
Node: 22.21.0
npm: 11.6.2
Relevant Packages:
next: 16.0.0
eslint-config-next: 16.0.0
react: 19.2.0
react-dom: 19.2.0
typescript: 5.5.4
Next.js Config:
cacheComponents: trueWhich area(s) are affected? (Select all that apply)
Use Cache, Partial Prerendering (PPR), TypeScript
Which stage(s) are affected? (Select all that apply)
next dev (local), next build (local), Vercel (Deployed)
Additional context
Disabling cacheComponents makes the build succeed. I also tried wrapping the entire client layout in Suspense, moving the Clerk sign-in into a client-only component, and calling next/cache noStore(), but the build still fails. Reproduces on Next.js 16.0.0 and 16.0.1-canary. Deploying to Vercel shows the same build failure.