Skip to content
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

notFound generates critical error with i18n #74236

Open
GeorgeHulpoi opened this issue Dec 23, 2024 · 0 comments
Open

notFound generates critical error with i18n #74236

GeorgeHulpoi opened this issue Dec 23, 2024 · 0 comments
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.

Comments

@GeorgeHulpoi
Copy link

Link to the code that reproduces this issue

https://github.com/GeorgeHulpoi/nextjs-not-found-bug

To Reproduce

  1. Go to http://localhost:3000/de and you will see the following errors in console:
    image

Current vs. Expected behavior

When the notFound is called from next/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

Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 10 Pro
  Available memory (MB): 14189
  Available CPU cores: 16
Binaries:
  Node: 20.9.0
  npm: 10.1.0
  Yarn: 1.22.21
  pnpm: 9.15.0
Relevant Packages:
  next: 15.1.2 // Latest available version is detected (15.1.2).
  eslint-config-next: N/A
  react: 19.0.0
  react-dom: 19.0.0
  typescript: N/A
Next.js Config:
  output: N/A

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 ;

@GeorgeHulpoi GeorgeHulpoi added the bug Issue was opened via the bug report template. label Dec 23, 2024
@github-actions github-actions bot added Internationalization (i18n) Related to Internationalization with Next.js. Navigation Related to Next.js linking (e.g., <Link>) and navigation. labels Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

1 participant