errors when trying to import NextAuth (nextjs typescript, )
Unanswered
Philadelphia Vireo posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/0.png)
Philadelphia VireoOP
In my next application under "pages/api/auth/[...nextauth].ts" i've tried to import NextAuth with: "import { NextAuth } from 'next-auth';".
The last part of this import appears with a red line as seen in the screenshot within this post. (I have already done "npm install next-auth" & and restarted visual studio) . I have includes a screenshot of my hierachry.
In my tsconfig.json, i have red lines on the following lines: ""moduleResolution": "bundler",
"resolveJsonModule": true, " (see screenshot)
What am i doing wrong here? My goal is to implement Google with nextauth for authentication. Thanks!
The last part of this import appears with a red line as seen in the screenshot within this post. (I have already done "npm install next-auth" & and restarted visual studio) . I have includes a screenshot of my hierachry.
In my tsconfig.json, i have red lines on the following lines: ""moduleResolution": "bundler",
"resolveJsonModule": true, " (see screenshot)
What am i doing wrong here? My goal is to implement Google with nextauth for authentication. Thanks!
![Image](https://cdn.discordapp.com/attachments/1152159434118807622/1152159434798280714/image.png)
![Image](https://cdn.discordapp.com/attachments/1152159434118807622/1152159435247058954/image.png)
![Image](https://cdn.discordapp.com/attachments/1152159434118807622/1152159435523899435/image.png)