Unable to find next-intl
locale because the middleware didn't run on this request.
#1263
Unanswered
arslanovngc
asked this question in
Q&A
Replies: 1 comment
-
It seems like there's an issue with your matcher regex and sourcemap requests. Review the linked troubleshooting guide in the error message or consider using the recommended matcher based on locale prefixes. I'm going to move this to a discussion since this is not a bug report, but a usage question. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Everything works fine. Here is my middleware
When I run my code and open the page in the browser, the console (inside terminal) is clear. But when I open browser's console and refresh the page "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. ThenotFound()
function will be called as a result." this one error appeared.I tested it in chrome, firefox, microsoft edge and same result. Error is appearing only when browser's console opened
Versions:
"react": "^18.3.1",
"next": "^14.2.4",
"next-intl": "^3.17.2"
Verifications
Mandatory reproduction URL
Sorry, I can not show my code
Reproduction description
Steps to reproduce:
Expected behaviour
Console should be clear
Beta Was this translation helpful? Give feedback.
All reactions