-
Notifications
You must be signed in to change notification settings - Fork 396
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
Nextjs 15: Type "AppRouteHandlerFnContext" is not a valid type for the function's second argument. #1805
Comments
@uprizingFaze Hello! Thank you for the quick reply. I have tried this but I am getting a wave of errors even before being able to check the build. I am following the docs here, but getting a lot of errors
Our TS config compiler options look like
changing to NodeNext we still get
|
Hi! Sorry for the delay, I was checking how V4 works. Unfortunately, many things have changed, and what I consider the most relevant is that, as far as I read, the middleware matcher isn’t working at the moment. Each route has to be protected "manually." I’ll keep an eye on it since I have an app and am watching for any updates. I’ll let you know if anything comes up. Everything is still a bit confusing; you can mention @guabu he can help you. |
I have not been able to get this work and now I am trying to upgrade to your latest version as it seems updating v3.5.0 is not an option for you. Its not a pleasant experience and have opened a few more issues eg Also came across this issue along the way https://community.auth0.com/t/trying-out-v4-beta-receiving-generic-error/151286 |
Checklist
Description
Using the latest Nextjs the app works in the dev mode. But in the production
next build
This occurs even with the simplest of code
nextauthjs/next-auth has a similar issue and the fix is:
nextauthjs/next-auth@6cbd6a5
Reproduction
next build
Additional context
No response
nextjs-auth0 version
3.5.0
Next.js version
15.0.3
Node.js version
v22.11.0
The text was updated successfully, but these errors were encountered: