-
-
Notifications
You must be signed in to change notification settings - Fork 326
Closed as not planned
Closed as not planned
Copy link
Labels
Description
Description
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)
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
- I've verified that the problem I'm experiencing isn't covered in the docs.
- I've searched for similar, existing issues on GitHub and Stack Overflow.
- I've compared my app to a working example to look for differences.
Mandatory reproduction URL
https://github.com/DiPSoMaNiE/next-intl-bug-repro-app-router
Reproduction description
Steps to reproduce:
- Open reproduction
- Run
bun run dev
(or install / run dev with another package manager) - Visit http://localhost:3000 and see error
Expected behaviour
Should not get any error.