amannn / next-intl

🌐 Internationalization (i18n) for Next.js
https://next-intl-docs.vercel.app
MIT License
2.58k stars 236 forks source link

The presence of a warning and error in the console in the App Routing example. #1311

Closed AnastasiiaRamona closed 2 months ago

AnastasiiaRamona commented 2 months ago

Description

The problem was found in the App Routing example.

When you go to the not-found page, you may see a warning: "No default component was found for a parallel route rendered on this page. Falling back to nearest Not Found boundary" and also an error: "GET http://localhost:3000/en/shshf 404 (Not Found)" in the console.

Screenshots:

Снимок экрана 2024-09-02 в 09 42 49 Снимок экрана 2024-09-02 в 09 47 22

The problems are not removed with the proposed default.js file. I have the same issue with my App Router project.

Verifications

Mandatory reproduction URL

App Router

Reproduction description

Steps to reproduce:

  1. Open a working example (npm run dev)
  2. Type in the URL of the browser the URL of the page that does not exist
  3. See error: GET http://localhost:3000/en/shshf 404 (Not Found)
  4. See warning: No default component was found for a parallel route rendered on this page. Falling back to nearest NotFound boundary.

Expected behaviour

No warnings or errors in the console.

amannn commented 2 months ago

Thanks for the report! This appears to be a bug on the Next.js side as the example doesn't use parallel routes at all.

I haven't traced this further, as the 404 page seems to be working as expected. If you like, you can raise an issue on the Next.js issue tracker—I'd be happy to follow along!