vercel / ai-chatbot

A full-featured, hackable Next.js AI chatbot built by Vercel
https://chat.vercel.ai
Other
5.61k stars 1.67k forks source link

Error when removing elements from UI #252

Open nninghk opened 4 months ago

nninghk commented 4 months ago

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.