-
Notifications
You must be signed in to change notification settings - Fork 397
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
Middleware throwing error on Next.js v13.4.4 #1218
Comments
I've just downgraded to Next.js 13.4.3 and this appears to be working fine, so I'll stick with that for now. I suspect they've stuffed something up as I found these issues: I think the fix will be coming in: vercel/next.js#50376 |
I have the same issue too, downgrading to Next.Js 13.4.3 fixed the issue. |
Thanks for raising this @ben-propflo I can confirm that this has been fixed on Next.js https://github.com/vercel/next.js/releases/tag/v13.4.5-canary.0 |
Renaming my |
Checklist
Description
Hey guys,
I've just upgraded Next.js from v13.2.3 to v13.4.4 and our middleware has just started failing to compile with the following error within @auth0/nextjs-auth0:
We aren't using withMiddlewareAuthRequired, instead choosing to roll our own which I guessed where the problem may lie, however after some additional digging, it looks like the example code is also throwing the same error:
Here's our middleware.ts for reference as well:
I appreciate this may also just be a bug in Next.js somewhere!
Reproduction
Additional context
No response
nextjs-auth0 version
2.2.2 & 2.6.0 (tried both)
Next.js version
13.4.4
Node.js version
18.16.0
The text was updated successfully, but these errors were encountered: