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
Application error: a client-side exception has occurred (see the browser console for more information).
Application error: a client-side exception has occurred (see the browser console for more information).
this error shows up. I have imported useSession like this,
import { signOut, useSession } from "next-auth/react";
import { signOut, useSession } from "next-auth/react";
What am I missing?
5 Replies
Stward
Stward2y ago
Could it be that maybe <Header /> is outside the scope of next-auth provider?
jeromemarshall
@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.
Stward
Stward2y ago
Ok, cool. Glad you solved it!
jeromemarshall
Thanks man
Want results from more Discord servers?
Add your server