-
Notifications
You must be signed in to change notification settings - Fork 26.1k
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
[NEXT-1101] Regression using nested routes with params #49193
Comments
We're also seeing this error since upgrading from Seems like params is not defined here:
|
Tested with latest canary
|
Does latest version 13.4.1 fix your issue? |
@huozhi No, still the same error. |
@huozhi Upgraded the reproduction site to |
We can repro now, I've marked it as a bug and we're investigating now 🙏 |
@huozhi I updated the repro to |
Should be fixed by #49315 indeed 👍 Thanks for checking! |
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
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 22.4.0: Mon Mar 6 20:59:58 PST 2023; root:xnu-8796.101.5~3/RELEASE_ARM64_T6020 Binaries: Node: 18.15.0 npm: 9.5.0 Yarn: 1.22.19 pnpm: 8.4.0 Relevant packages: next: 13.3.5-canary.8 eslint-config-next: 13.3.4 react: 18.2.0 react-dom: 18.2.0
Which area(s) of Next.js are affected? (leave empty if unsure)
App directory (appDir: true)
Link to the code that reproduces this issue
https://github.com/tommybarvaag/nested-routes-with-params
To Reproduce
Everything works as expected locally with
next dev
but crashes when hosted @vercel.Click the link
Go to second params page
on the page https://nested-routes-with-params.vercel.app.This crashes the page. Resulting in a blank render.
If we peek into the console you can see the following error
On further inspection in Vercel logs we can read the following
And
And
Describe the Bug
Next crashes with nesting routes with params.
The reproduction repo contains the following route structure
When navigating to the [second] page Next will throw an error because the first parameter is undefined.
Expected Behavior
Shouldn't crash.
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
Vercel
NEXT-1101
The text was updated successfully, but these errors were encountered: