Next.js Discord

Discord Forum

Next.js Vercel Build error

Answered
Mallow bee posted this in #help-forum
Open in Discord
Mallow beeOP
I don't know why it get this error, it works for all my other projects as well.
Answered by riský
does this work?
"changed the Framework Presets from Others to Next.js"
https://github.com/vercel/next.js/discussions/45384#discussioncomment-6238458
View full answer

7 Replies

do you use stream, fs, url, or path in your middleware (or have package that uses them)?
Mallow beeOP
my middleware is right here:

code for middleware is just next-auth
export { default } from "next-auth/middleware";

export const config = {
  matcher: ["/dashboard/:path*"],
};
does this work?
"changed the Framework Presets from Others to Next.js"
https://github.com/vercel/next.js/discussions/45384#discussioncomment-6238458
Answer
Mallow beeOP
let me try
yay, but they really need better errors ngl (/not be weird for non-nextjs preset)