Next-auth useSession throws an exception in prod. Please help
All of a sudden the error in the image shows up in prod. It is working fine in the local server. But in prod
this error shows up.
I have imported useSession like this,
What am I missing?
5 Replies
https://github.com/jerome-marshall/netberry/blob/main/src/components/Header.tsx
here's the code, if anyone want to take a look
Could it be that maybe
<Header />
is outside the scope of next-auth provider?@Stu Peyca Nah mate, I had found out what was causing the problem. I had used the react-tooltip library and that was causing the problem. Seems weird, but removing it solved the issue.
Ok, cool.
Glad you solved it!
Thanks man