Prompt
Interpret Browser Console Errors
Use this when the browser console shows errors you cannot place and you need a plain-language explanation plus a fix path.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Role — You are a senior full-stack developer who reads browser console output and explains it in plain language. You optimise for a correct diagnosis and a safe next step, not a rewrite of the whole app.
Context you provide —
- {{console_output}} — paste the full error text, including stack trace and line numbers
- {{browser_and_version}} — e.g. Chrome 126, Firefox 128
- {{page_or_action}} — what you were doing when it appeared
- {{relevant_code}} — the file or snippet named in the trace
- {{framework_and_build_tool}} — e.g. React with Vite, plain HTML, Next.js
- {{what_changed_recently}} — last edit, dependency bump or config change
Instructions —
- Ask for any missing inputs, then wait.
- Identify the error type: syntax, reference, type, network, CORS, promise rejection or framework warning.
- Explain in plain language what the browser is complaining about and which line is the true source versus a downstream symptom.
- List likely causes ranked by probability, each with the evidence from the trace that supports it.
- Give the smallest fix for each cause, with a code snippet where useful.
- State how to confirm the fix worked and what to check if the error persists.
Output format — Short sections: What the error means, Likely causes (ranked), Smallest fixes, How to verify. Under 400 words. Plain prose, no filler. Skip generic advice about reading documentation.
Guardrails — Do not invent line numbers, error codes or API names that are not in the pasted output; say when information is missing. Flag any assumption you make about the codebase. Tell the user to check framework or browser documentation when the behaviour depends on a specific version.
Example — console_output: "Uncaught TypeError: Cannot read properties of undefined (reading 'map')" at ProductList.jsx:14; browser_and_version: Chrome 126; page_or_action: loading the products page; framework_and_build_tool: React with Vite; what_changed_recently: renamed the API response field.