Next.js Discord

Discord Forum

NEXT_NOT_FOUND - Help

Unanswered
Doberman Pinscher posted this in #help-forum
Open in Discord
Doberman PinscherOP
Hey guys!

6 Replies

Doberman PinscherOP
I have been using next together with next-intl for some time now.
And I have a lot of time seeing this error: "Unable to find next-intl locale because the middleware didn't run on this request. See https://next-intl-docs.vercel.app/docs/routing/middleware#unable-to-find-locale. The notFound() function will be called as a result."
Today I decided to repair it, and I realized that the error seems to come from the redirection itself that does not find anything.
For example, if my domain is: https://next.js/ and I go to https://next.js/wp/admin.php it takes you to a page with the background color of the web and... nothing else. And that's when the next-intl error occurs.
The problem is that I have all possible notFound calls in all possible places (with text) and it never shows up.