amannn / next-intl

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

No default component was found #1179

Open jeremy-habit opened 2 weeks ago

jeremy-habit commented 2 weeks ago

Description

Hello,

I followed https://github.com/amannn/next-intl/tree/main/examples/example-app-router exemple to install next-intl. When I reach a wrong url, like 'https://next-intl-example-app-router.vercel.app/sdsdsd' i'm well redirected to 404 custom page. Well, but i can see a warning in the browser console (see the screenshot below) talking about default.js component : Capture d’écran 2024-07-09 à 14 10 57

it's talking about Parallel Routes but like i said i only reproduced the structure based on the example source code :

Capture d’écran 2024-07-09 à 14 10 29

This warning doesn't appear with 'yarn start' only with 'yarn dev' command.

Verifications

Mandatory reproduction URL

https://github.com/amannn/next-intl/tree/main/examples/example-app-router

Reproduction description

Steps to reproduce:

  1. Open reproduction
  2. yarn dev to launch the server as dev mode
  3. Type wrong url
  4. Press enter
  5. open browser console
  6. see the warning

Expected behaviour

Must i take care about this warning or it's normal ? i don't understand it

amannn commented 2 weeks ago

It looks like a false warning to me from Next.js, as there are clearly no parallel routes used in the example. If you'd like to help, you could report this on the Next.js repo!