Next.js Discord

Discord Forum

NextIntl Error with Long URLs "No intl context found..."

Unanswered
Mackenzie River Husky posted this in #help-forum
Open in Discord
Avatar
Mackenzie River HuskyOP
Why is Next.js 14 with NextIntl showing this error: "Error: No intl context found..."?

The issue only occurs with complex routes, for example:

http://localhost:3000/app/dsadas -> My custom 404 page loads fine here.

http://localhost:3000/app/dsadas/dsadas -> For this or any longer URL, it throws the error.

http://localhost:3000/de/app/dsadas/dsadas/231123 -> If the language parameter is present in the route, it still shows the same error.

What could be causing this?
I’ve attached images of my code. Thanks in advance for the help!
Image
Image
Image

0 Replies