-
hey folks, I am trying to upgrade the setup to V5 with a very basic auth file (I commented the code to test it out), TypeScript compiler is giving me some trouble: import NextAuth, { NextAuthConfig } from 'next-auth';
const config = {
} satisfies NextAuthConfig;
export const { handlers, auth, signIn, signOut } = NextAuth(config);
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 13 replies
-
Hey @ThangHuuVu, I sincerely apologize for tagging you directly. I am unsure what to do anymore. Have you seen this issue before or know what the issue is with TypeScript? PR: https://github.com/straw-hat-team/nextjs-starter-kit/pull/157 |
Beta Was this translation helpful? Give feedback.
-
After trying multiple things following microsoft/TypeScript#42873 I decided to add to my Next Apps computation: {
"compilerOptions": {
"declaration": false,
}
} It is fixed under I am not sure what the downsides are doing that, |
Beta Was this translation helpful? Give feedback.
-
I am having the same issue but with the
My code : import NextAuth from 'next-auth';
import Entra from 'next-auth/providers/microsoft-entra-id';
const {
AZURE_ENTRA_TENANT_ID,
AZURE_ENTRA_CLIENT_ID,
AZURE_ENTRA_CLIENT_SECRET,
} = process.env;
export const { auth, handlers, signIn, signOut } : NextAuthResult = NextAuth({ // The signIn is marked as error
providers: [
Entra({
tenantId: AZURE_ENTRA_TENANT_ID,
clientId: AZURE_ENTRA_CLIENT_ID,
clientSecret: AZURE_ENTRA_CLIENT_SECRET,
}),
],
}); |
Beta Was this translation helpful? Give feedback.
After trying multiple things following microsoft/TypeScript#42873 I decided to add to my Next Apps computation:
It is fixed under
"@straw-hat/tsconfig": "4.2.2"
I am not sure what the downsides are doing that,
for app compilations
, I would love to hear your opinions here: