Whenever I remove any element from the web UI, no matter how small (e.g., the "github" link or Vercel link on top right), I get an error when log out of Github account thru NextAuth:
⨯ TypeError: Cannot read properties of null (reading 'useContext')
at t.useContext (C:\Users\longh\Desktop\bot_prj\ai-chatbot-main\node_modules\next\dist\compiled\next-server\app-page.runtime.dev.js:35:162991)
Whenever I remove any element from the web UI, no matter how small (e.g., the "github" link or Vercel link on top right), I get an error when log out of Github account thru NextAuth:
⨯ TypeError: Cannot read properties of null (reading 'useContext') at t.useContext (C:\Users\longh\Desktop\bot_prj\ai-chatbot-main\node_modules\next\dist\compiled\next-server\app-page.runtime.dev.js:35:162991)
Anyone knows why this is, and how to fix it?
Thanks.