The chat feature requires database migrations to be applied. If you're getting "Failed to load conversations" errors, you need to apply the chat migration to your database.
npx supabase db reset- Go to your Supabase project dashboard
- Navigate to SQL Editor
- Copy and paste the contents of
supabase/migrations/20250731000001-create-chat-tables-fixed.sql - Run the SQL query
npx supabase db pushAfter applying the migration, you should be able to:
- Click "Messages" in the navbar to see the chat interface
- Click "Message" on any user's profile to start a conversation
- Send and receive messages in real-time
If you still get errors:
- Check the browser console for detailed error messages
- Verify the tables were created in your Supabase database:
conversationstablemessagestable
- Check that RLS policies are enabled and working properly