Issue with params in DynamicIO + Next.js
Unanswered
kubas posted this in #help-forum
kubasOP
Hey, I’m getting this error after
Page code is attached. Any ideas?
npm run build
with DynamicIO enabled in Next.js:$ npm run build
> test@0.1.0 build
> next build
▲ Next.js 15.3.1-canary.10
- Environments: .env
- Experiments (use with caution):
✓ dynamicIO
Creating an optimized production build ...
✓ Compiled successfully in 3.0s
✓ Linting and checking validity of types
✓ Collecting page data
Error: Route "/p/[id]": A component accessed data, headers, params, searchParams, or a short-lived cache without a Suspense boundary nor a "use cache" above it. We don't have the exact line number added to error messages yet but you can see which component in the stack below. See more info: https://nextjs.org/docs/messages/next-prerender-missing-suspense
at R (C:\dev\projects\js\next\test\.next\server\chunks\143.js:1:4800)
at f (C:\dev\projects\js\next\test\.next\server\chunks\555.js:3:21156)
at c (C:\dev\projects\js\next\test\.next\server\chunks\555.js:3:21037)
at body (<anonymous>)
at html (<anonymous>)
Error occurred prerendering page "/p/[id]". Read more: https://nextjs.org/docs/messages/prerender-error
Export encountered an error on /p/[id]/page: /p/[id], exiting the build.
⨯ Next.js build worker exited with code: 1 and signal: null
Page code is attached. Any ideas?