Using next-auth causing errors.
Unanswered
Cane Corso posted this in #help-forum
Cane CorsoOP
Heym for some reason using next-auth doesnt work for me.
latest nextjs and next-auth versions.
Getting this error:
latest nextjs and next-auth versions.
Getting this error:
index.js:630 Uncaught TypeError: next_auth_providers_instagram__WEBPACK_IMPORTED_MODULE_1__ is not a function
at eval (webpack-internal:///./pages/api/auth/[...nextauth].js:13:9)
6 | export const authOptions = {
7 | providers: [
> 8 | InstagramProvider({
| ^
9 | clientId: "959530835144853",
10 | clientSecret: "ebf9e6902da513bf5f04ac49eaa6ad0c",
11 | }),
1 Reply
Cane CorsoOP
Using "InstagramProvider.default" and "NextAuth.default" (with
.default
) solved the issue but why? its giving me a lot of typescript errors now.