-
-
Notifications
You must be signed in to change notification settings - Fork 271
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
PPR: A required root parameter (locale) was not provided in generateStaticParams for /[locale] #1618
Comments
Thanks for the report! I think that's related to the upcoming Have you tried adding |
I am experiencing the same issue on export function generateStaticParams() {
return routing.locales.map((locale) => ({ locale }));
} I have a nested layout like [locale]/some-path/[slug]. When trying to define Should still be working IMO, so I guess it is a next bug. Let me know what you think! |
I ran into the same issue when trying PPR on my new project. Turns out I missed the static rendering section: https://next-intl.dev/docs/getting-started/app-router/with-i18n-routing#static-rendering |
This issue has been automatically closed because there was no recent activity and it was marked as unconfirmed. Note that issues are regularly checked and if they remain in unconfirmed state, they might miss information required to be actionable or are potentially out-of-scope. If you'd like to discuss this topic further, feel free to open a discussion instead. |
Description
Starting from
[email protected]
with experimental ppr enabled and use ofsetRequestLocale
, I get the following error:The error also occurs on
[email protected]
and[email protected]
but everything works fine on[email protected]
.Not knowing if it's a next-intl or a next issue, I'm reporting this in case it is an upcoming breaking change from next.
Verifications
Mandatory reproduction URL
https://github.com/DiPSoMaNiE/next-intl-bug-repro-app-router
Reproduction description
Steps to reproduce:
bun run dev
(or install / run dev with another package manager)Expected behaviour
Should not get any error.
The text was updated successfully, but these errors were encountered: