<SessionProvider> import is next-auth/react is not working #2749
-
Question 💬I am trying to use the I don't understand what is wrong? How do I fix this? How to reproduce ☕️_app.js code
Contributing 🙌🏽Yes, I am willing to help answer this question in a PR |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 2 replies
-
make sure you use either v3 of v4. if you use v4: https://next-auth.js.org/getting-started/upgrade-v4#verify-the-correct-version |
Beta Was this translation helpful? Give feedback.
-
Just figured this out! Thank you. For some reason know tho im getting an error "session.user" is undefined? I may need to create another question |
Beta Was this translation helpful? Give feedback.
-
make sure you give a read to the docs to avoid most common mistakes https://next-auth.js.org/getting-started/client#sessionprovider |
Beta Was this translation helpful? Give feedback.
-
I've applied what is in the documentation and im still receiving the error, I've created a post hopefully I can get some help I am pulling my hair out lol |
Beta Was this translation helpful? Give feedback.
-
you have: this changed in v4 beta to: also ensure that you (currently) import in package.json: |
Beta Was this translation helpful? Give feedback.
-
If using v4, make sure you read this https://next-auth.js.org/getting-started/upgrade-v4 |
Beta Was this translation helpful? Give feedback.
make sure you give a read to the docs to avoid most common mistakes https://next-auth.js.org/getting-started/client#sessionprovider