-
Notifications
You must be signed in to change notification settings - Fork 27.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[appdir] [next 13.1.2] build crashes because routes are prerendered with fake data in dynamic segments #45006
Comments
The repository you provided is a default template. There may be a mistake here. Can you please edit the correct repository link? |
I am also experiencing this. I have a page with a dynamic path in app dir |
Hi, Note, it is expected that the page attempts being prerendered if this isn't present and |
sorry for the wrong reproduction link, I have fixed it. Thanks for the quick fix @ijjk ! |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
$ /private/tmp/reproduction-app/node_modules/.bin/next info
✨ Done in 2.42s.
Which area(s) of Next.js are affected? (leave empty if unsure)
No response
Link to the code that reproduces this issue
https://github.com/raphaelbadia/nextjs-appdir-prerenders-weird
To Reproduce
Hello,
I upgraded from next 13.0.6 to [email protected] yesterday and since then I cannot build anymore my project. Digging into the issue showed my that the pages with dynamic segments are now prerendered at build time with the dynamic segment name as a string.
To reproduce, simply clone and install my reproduction link, then run
yarn build
.The build will fail.
Describe the Bug
When building, next will try to render the page with the param as an argument. For instance, it will prerender
app/[todoId]/page.tsx
with the params{todoId: "[todoId]"}
.I tried using
export const dynamic = 'force-dynamic';
but it doesn't change anything.Expected Behavior
Like in 13.1.1, it shouldn't fail the build.
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
The text was updated successfully, but these errors were encountered: