You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting from [email protected] with experimental ppr enabled and use of setRequestLocale, I get the following error:
Error: A required root parameter (locale) was not provided in generateStaticParams for /[locale], please provide at least one value.
This error happened while generating the page. Any console logs will be displayed in the terminal window.
validateParams
node_modules/next/src/build/static-paths/app.ts (187:15)
validateParams
node_modules/next/src/build/static-paths/app.ts (512:7)
Thanks for the report! I think that's related to the upcoming rootParams API, which should make setRequestLocale obsolete. I've got an experimental PR open here that explores these upcoming features: #1531. It's still a bit early with these APIs, I'm currently investigating how these can be adopted. I hopefully have more to share on this soon!
Have you tried adding generateStaticParams as mentioned in the error message?
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: