Prisma Adapter error not connecting to db
I get this error message:
ype 'import("/Users/mehtabghuman/Desktop/ReZume/Rezume/node_modules/.pnpm/@auth+core@0.32.0_nodemailer@6.9.13/node_modules/@auth/core/adapters").Adapter' is not assignable to type
Types of property 'getAuthenticator' are incompatible.
Type '((credentialID: string) => import("/Users/mehtabghuman/Desktop/ReZume/Rezume/node_modules/.pnpm/@auth+core@0.32.0_nodemailer@6.9.13/node_modules/@auth/core/types").Awaitable<import("/Users/mehtabghuman/Desktop/ReZume/Rezume/node_modules/.pnpm/@auth+core@0.32.0_nodemailer@6.9.13/node_modules/@auth/core/adapters").Ada...' is not assignable to type '((credentialID: string) => import("/Users/mehtabghuman/Desktop/ReZume/Rezume/node_modules/.pnpm/@auth+core@0.27.0_nodemailer@6.9.13/node_modules/@auth/core/types").Awaitable<import("/Users/mehtabghuman/Desktop/ReZume/Rezume/node_modules/.pnpm/@auth+core@0.27.0_nodemailer@6.9.13/node_modules/@auth/core/adapters").Ada...'.
Type '(credentialID: string) => import("/Users/mehtabghuman/Desktop/ReZume/Rezume/node_modules/.pnpm/@auth+core@0.32.0_nodemailer@6.9.13/node_modules/@auth/core/types").Awaitable<import("/Users/mehtabghuman/Desktop/ReZume/Rezume/node_modules/.pnpm/@auth+core@0.32.0_nodemailer@6.9.13/node_modules/@auth/core/adapters").Adap...' is not assignable to type '(credentialID: string) =>
Type 'import("/Users/mehtabghuman/Desktop/ReZume/Rezume/node_modules/.pnpm/@auth+core@0.32.0_nodemailer@6.9.13/node_modules/@auth/c
Type 'AdapterAuthenticator' is not assignable to type 'Awaitable<AdapterAuthenticator | null>'.
Type .
Types of property 'transports' are incompatible.
Type 'string | null | undefined' is not assignable to type 'string | undefined'.
Type 'null' is not assignable to type 'string | undefined'.ts(2322)
(property) adapter?: Adapter | undefined
1 Reply
national-goldOP•2y ago
here is the code: