TypeError: Cannot destructure property 'data' of '(0 , #8166
Replies: 6 comments 3 replies
-
hello! did you find a solution for this? |
Beta Was this translation helpful? Give feedback.
-
Same situation here, next-auth 4.24.5 |
Beta Was this translation helpful? Give feedback.
-
This error occurs for me when I try and upgrade from Yarn v1 to Yarn v4. We have a workspaces setup where every package is a Next.js site that uses
The only way I've managed to fix it is by downgrading Yarn back to v1, but we'd really like to migrate to take advantage of improvements like the new |
Beta Was this translation helpful? Give feedback.
-
any fixes for this? still having this problem |
Beta Was this translation helpful? Give feedback.
-
same problem, help please |
Beta Was this translation helpful? Give feedback.
-
I too faced the same issue and after only i realized i was calling the Login form somewhere else . we have to wrap the component inside < SessionProvider >. my code was : this was correct and inside LoginForm i called const { data: session, status } = useSession() which is correct . But i had a different login for other user which uses the same LoginForm component , in that page i just called : without the SessionProvider which was causing the issue in my case. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Question 💬
I try to add login and logout button but I get this error how to fix ?
How to reproduce ☕️
Contributing 🙌🏽
Yes, I am willing to help answer this question in a PR
Beta Was this translation helpful? Give feedback.
All reactions