-
-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using all the Steps in the Docs yet I still see the same error "Error: Couldn't find next-intl config file. Please follow the instructions" #639
Comments
I think your matcher is off and doesn't match The matcher that the docs suggest for Hope this helps! |
Closing this due to inactivity. |
Sorry for this, but I tried a brand new repo. Copying one to one from the What am I doing wrong? The error keeps saying it cannot find the Or even a simple example that has the NextIntlClientProvider and something close to my setup would be great. Thank you in advance.. |
Here is an example. It is 1-2-1 what you have in the examples. Can you take a look please? I am sure it should be working. What am I doing wrong? |
Change your |
I'm not using cjs but still get the same issue. The docs are very confusing, the client way of setting up aks for no next.config alterations and also no special config files are needed. But it is impossible to make it work without it. |
Description
I am using the latest release of
next-intl
. I was previously using 2.x and was working fine. I did all the Steps described in this page as the error message suggests.Here are the files I have:
And it should theoretically work. I deleted
node_modules
, disabled other middleware removed Sentry in case it conflicted somewhere, yet nothing.The issue seems to be with the matcher. With the one you are providing all my routes are 404, and with the one that matches mine, throw the above error.
Mandatory reproduction URL (CodeSandbox or GitHub repository)
https://codesandbox.io/p/sandbox/next-intl-bug-template-app-forked-26fy8s?file=%2Fsrc%2Fmiddleware.ts%3A7%2C4&layout=%257B%2522sidebarPanel%2522%253A%2522EXPLORER%2522%252C%2522rootPanelGroup%2522%253A%257B%2522direction%2522%253A%2522horizontal%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522id%2522%253A%2522ROOT_LAYOUT%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522clp1ml0um00093b5xtznwcm9y%2522%252C%2522sizes%2522%253A%255B70%252C30%255D%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522EDITOR%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522id%2522%253A%2522clp1ml0ul00033b5xh3pzt6ve%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522SHELLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522id%2522%253A%2522clp1ml0ul00063b5xts0ianf5%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522DEVTOOLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522id%2522%253A%2522clp1ml0um00083b5xw5ej96sc%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%252C%2522sizes%2522%253A%255B50%252C50%255D%257D%252C%2522tabbedPanels%2522%253A%257B%2522clp1ml0ul00033b5xh3pzt6ve%2522%253A%257B%2522id%2522%253A%2522clp1ml0ul00033b5xh3pzt6ve%2522%252C%2522activeTabId%2522%253A%2522clp1mlcsd005z3b5x4vv5w82n%2522%252C%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clp1ml0ul00023b5xfqsqtbgb%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522FILE%2522%252C%2522filepath%2522%253A%2522%252FREADME.md%2522%252C%2522state%2522%253A%2522IDLE%2522%257D%252C%257B%2522type%2522%253A%2522FILE%2522%252C%2522filepath%2522%253A%2522%252Fsrc%252Fmiddleware.ts%2522%252C%2522id%2522%253A%2522clp1mlcsd005z3b5x4vv5w82n%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522state%2522%253A%2522IDLE%2522%257D%255D%257D%252C%2522clp1ml0um00083b5xw5ej96sc%2522%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clp1ml0um00073b5xm5bawiod%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522TASK_PORT%2522%252C%2522taskId%2522%253A%2522dev%2522%252C%2522port%2522%253A3000%252C%2522path%2522%253A%2522%252Fen%2522%257D%255D%252C%2522id%2522%253A%2522clp1ml0um00083b5xw5ej96sc%2522%252C%2522activeTabId%2522%253A%2522clp1ml0um00073b5xm5bawiod%2522%257D%252C%2522clp1ml0ul00063b5xts0ianf5%2522%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clp1ml0ul00043b5xuwzh19r6%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522TASK_LOG%2522%252C%2522taskId%2522%253A%2522dev%2522%257D%252C%257B%2522id%2522%253A%2522clp1ml0ul00053b5x4xs7m1qa%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522TASK_LOG%2522%252C%2522taskId%2522%253A%2522start%2522%257D%255D%252C%2522id%2522%253A%2522clp1ml0ul00063b5xts0ianf5%2522%252C%2522activeTabId%2522%253A%2522clp1ml0ul00043b5xuwzh19r6%2522%257D%257D%252C%2522showDevtools%2522%253Atrue%252C%2522showShells%2522%253Atrue%252C%2522showSidebar%2522%253Atrue%252C%2522sidebarPanelSize%2522%253A15%257D
Reproduction description
Steps to reproduce:
The error stems from the path matcher. In real project, we might have more complicated stuff. What should we use then? Is it a bug in
next-intl
?Expected behaviour
When I use a matcher, it should match the routes we have in our applications and not show 404, and should be able to use next-intl as well.
The text was updated successfully, but these errors were encountered: