notFound generates critical error with i18n #74236
Labels
bug
Issue was opened via the bug report template.
Internationalization (i18n)
Related to Internationalization with Next.js.
Navigation
Related to Next.js linking (e.g., <Link>) and navigation.
Link to the code that reproduces this issue
https://github.com/GeorgeHulpoi/nextjs-not-found-bug
To Reproduce
http://localhost:3000/de
and you will see the following errors in console:Current vs. Expected behavior
When the
notFound
is called fromnext/navigation
, seems to produce the error. Normally, it should show the default 404 page.For example, navigating to
http://localhost:3000/en/test
render the default 404 (as expected).Provide environment information
Which area(s) are affected? (Select all that apply)
Internationalization (i18n), Navigation
Which stage(s) are affected? (Select all that apply)
next dev (local), next build (local), next start (local)
Additional context
Related issues:
#59180
#55191
I followed the steps from https://nextjs.org/docs/app/building-your-application/routing/internationalization ;
The text was updated successfully, but these errors were encountered: