-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Type issue in 4.24.8 Adapter #11916
Comments
Looks related to #11562 Based on #9493 (comment) and my own local testing, I thought it fixed the issue... But it introduced a new one in case of custom adapters. 🙁 I will try to look into this. |
Hi. The issue seems to be present (and/or breaking CI/CD) when one do not install Maybe this information will be helpful |
Yes I have a same issue. Using Prisma adapter. |
This comment has been minimized.
This comment has been minimized.
Anyone saying same issue, add a reproduction. Would help to see how this regressed. |
We have a branch to upgrade next-auth here: langfuse/langfuse#3602
Here are also docs explaining how to get up and running with the repo. |
@balazsorban44 looking at https://github.com/nextauthjs/next-auth/pull/11562/files , I'll explain what I think the regression is to you. The PR introduces an optional dependency on ... I'm not 100% sure of that though, I tried to pull in |
balazsorban44 i do not have noImplicitAny set in my project. Any other reason why this might be failing? |
In order to unblock upgrade to next.js 15 I had to specify the type for Before: import type { Adapter } from "next-auth/adapters";
function MyAdapter(): Adapter {
return {
async unlinkAccount({
providerAccountId,
provider
}) {
}
};
} After: import type { Adapter, AdapterAccount } from "next-auth/adapters";
function MyAdapter(): Adapter {
return {
async unlinkAccount({
providerAccountId,
provider
}: Pick<AdapterAccount, "provider" | "providerAccountId">) {
}
};
} |
@balazsorban44 is there any update on this? I would really like to upgrade next-auth but I am blocked by this right now. |
Environment
Reproduction URL
https://github.com/tacomanator/next-auth-adapter-4.24.8
Describe the issue
In upgrading from 4.24.7 to 4.24.8, the parameter types for the following
Adapter
methods are missing (i.e. becoming implicitany
):How to reproduce
try to build typescript project with custom Adapter. For example, the reproduction repository uses the following:
Expected behavior
Types are present for parameters and can build.
The text was updated successfully, but these errors were encountered: