Next.js v15 PPR throw error when navigating client side (e.g: a link), with both static and dynamic components with static params route (only in dev) #66241
Labels
bug
Issue was opened via the bug report template.
locked
Navigation
Related to Next.js linking (e.g., <Link>) and navigation.
Partial Prerendering (PPR)
Related to Partial Prerendering.
Link to the code that reproduces this issue
https://github.com/theoludwig/nextjs-bug-ppr-static-and-dynamic
To Reproduce
next dev
)Minimal code reproducing the bug
app/[locale]/layout.tsx
app/[locale]/page.tsx
components/PostByIdData.tsx
(static)components/PostRandomData.tsx
(dynamic)Current vs. Expected behavior
Current
Expected
No error thrown, as PPR should allow to have both static and dynamic components inside generated static params route (the error is only thrown in development mode not in production build).
Provide environment information
Which area(s) are affected? (Select all that apply)
Navigation, Partial Prerendering (PPR)
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
The bug wasn't there in Next.js v14.2.3, only in Next.js v15 RC, in dev mode (both with and without turbopack).
The text was updated successfully, but these errors were encountered: