Expected "{ params: any; }", got "PageProps" on page next build
dynamic segments
#42083
Closed
1 task done
Labels
Verify canary release
Provide environment information
What browser are you using? (if relevant)
chrome v106
How are you deploying your application? (if relevant)
vercel
Describe the Bug
Error on compilation on Page's dynamic segments (NextJS 13):
Path/route:
app/movies/[id]/page.tsx
:Contents of
page.tsx
:Everything runs smoothly while on
next dev --turbo
, but as soon as I trynext build
, I get:I'm having to add the
ignoreBuildErrors: true
flag in mynext.config.js
file for it to be able to build correctly when deploying it on vercel.Expected Behavior
Build smoothly
Link to reproduction
N/A
To Reproduce
Create a dynamic segment with nextjs v13 as explained above and try to
next build
.The text was updated successfully, but these errors were encountered: