Frontend Errors
How to find and fix browser console errors, React errors, and white screens.
What Are Frontend Errors?
Frontend errors happen in the browser. You might see:
- A completely white or blank page
- A React error boundary message ("Something went wrong")
- Things silently breaking (buttons not working, forms not submitting)
The key tool for finding frontend errors is the browser Developer Console.
How to Open the Browser Console
Chrome / Edge:
Windows: F12 or Ctrl + Shift + J
Mac: Cmd + Option + J
Safari:
1. Safari > Settings > Advanced > Check 'Show Develop menu'
2. Cmd + Option + CWhen you open the console, look for red text — these are errors.
Reading Console Errors
A console error has three key pieces of information:
Uncaught TypeError: Cannot read properties of undefined (reading 'map')
at DashboardPage (app/dashboard/page.tsx:24:18)
^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^
Error type File location Line numberYou do not need to understand what the error means. Just copy the entire red text and give it to Claude.
Common Frontend Error Types
| Error | What It Means | Common Cause |
|---|---|---|
TypeError: Cannot read properties of undefined | Accessing data that does not exist yet | Data has not loaded, or API returned null |
Unhandled Runtime Error | React component crashed | A bug in a component's render logic |
Hydration error | Server HTML does not match client HTML | Using browser-only APIs or random values during render |
404 on API route | API endpoint not found | Wrong URL path or missing API file |
White Screen of Death
If your app shows a completely blank white page:
- Open the browser console (see shortcuts above)
- Look for red error messages
- Copy the entire error text
- Give it to Claude
React Hydration Errors
Hydration errors happen when the server-rendered HTML does not match what React expects in the browser. The page might flicker or show a warning in the console.
Giving Errors to Claude
When reporting a frontend error, always include:
- The full error message — copy all red text from the console
- What you were doing — which page, what action triggered it
- What you expected — what should have happened instead
Quiz
Your app shows a completely white/blank page. What should you do first?