StoicBuilder

HandbookI the LudusReading errors

Ithe Ludus, Read code

Reading errors

1 min readUpdated 28 November

In plain words

An error message tells you what kind of thing broke, in which file and on which line, so you know where to look before anyone guesses.

Where you see it

The red text in your browser console (right-click, Inspect, Console), the overlay in a Vite or Next.js preview, or a failed Vercel build log. The first line names the type and the problem; the lines below say where.

Browser consolebrowser
Uncaught ReferenceError: total is not defined at Checkout (Checkout.tsx:22:15)
Type, then message, then place: Checkout.tsx, line 22.

What goes wrong

  1. Telling the agent "it's broken"

    Without the exact message, the agent guesses and rewrites code that was fine. Copy the whole error, file and line included.

  2. Stopping at "exited with 1"

    The last lines of a failed Vercel build only say the build command failed. Scroll up to the first red line for the real cause.

    Error: Command "npm run build" exited with 1
  3. Fixing the line, not the cause

    An error points at the line where the code tripped, not where the mistake was made. A missing value usually went wrong earlier, at the line meant to set it.

What to tell your agent

Copy this into Lovable, Bolt, Cursor or any agent
Here is the full error. Before changing any code, explain in plain words what it means, which file and line it points to and what caused it, then make the smallest fix that solves it.

Quick check

Sign in to earn +10 XP for it

The console says "ReferenceError: total is not defined". What does that tell you?

Got a prompt that touches reading errors?

Paste it. You get a better prompt first, then the cards that explain it.

Check your own prompt

Free, no sign-up.