Replies: 9 comments 10 replies
-
|
We have the same issue where we can't deploy our current pipeline using It seems that the documentation is mentioned that it will be supported in Appreciate how to resolve this issue and what is the workaround. |
Beta Was this translation helpful? Give feedback.
-
|
I found out that the check for |
Beta Was this translation helpful? Give feedback.
-
|
I can't fully reproduce this 🤔 does anyone have a repository? I am seeing some warnings when dev uses turbopack, but anything other than that, things seem to work? Tested with |
Beta Was this translation helpful? Give feedback.
-
|
Context
Why
Fix (minimum viable)
Docs
If this solves it, please Mark as answer so others can find it. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the reply. I will verify on a clean setup and report back with exact versions and steps. For now my repro uses Node 20.x, pnpm, and Next canary, tested with |
Beta Was this translation helpful? Give feedback.
-
|
Just FYI , i upgraded my project to next 15.5 and everything works now. the middleware is placed as a sibling to |
Beta Was this translation helpful? Give feedback.
-
|
the same error occurs in the stable version of nextjs 15 (15.4.5). Operating System: const middleware = auth((req) => {
...
});
export const config = {
matcher: ["/((?!api|_next/static|_next/image|favicon.ico|auth).*)"],
runtime: "nodejs"
};
export default middleware |
Beta Was this translation helpful? Give feedback.
-
|
I met this issue with [email protected]. I solved it by upgrading to [email protected] |
Beta Was this translation helpful? Give feedback.
-
|
The problem is with runtime:"nodejs" completely remove that line or replace with "edge" |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I'm excited that the node middleware support is stabilizing (https://github.com/vercel/next.js/releases/tag/v15.4.2-canary.13). Kudos to everyone involved 🙏 🙇
When switching to 15.4.2-canary.15 and removing the:
from next.config, and starting the app I get "Cannot find middleware module".

The file structure of the next.js project:

The project is also using
"next-intl": "^3.26.5"if that matters somehow :DHelp 🙏 What am I doing wrong?
Additional information
Beta Was this translation helpful? Give feedback.
All reactions