← Back to Demo Hub
Test #2Basic Errors

Undefined Variable

Using a variable that was never declared - often caused by typos or missing imports.

📋 Demo Instructions

  1. Click the "Trigger Error" button below
  2. Open browser console (F12) to see the error
  3. Wait 5-10 seconds for the error to be captured
  4. Go to Dashboard → Performance Monitoring
  5. Click "Fix with Carla" on the error
  6. Review the generated PR
🌍 Real-World Scenario
Developer made a typo in variable name, or forgot to import a module. This is especially common when refactoring code and missing a reference update.
✅ Expected Fix
Declare the variable before use, fix the typo in the variable name, or add the missing import statement.
Fix Confidence:HIGH

💻 Buggy Code

// Buggy Code
console.log(userData.email);
// ReferenceError: userData is not defined

🔴 Error Log

Waiting for error to be triggered...