Fixing Errors

Learn how to use Claude to quickly resolve issues without Googling: let it search the web, paste errors directly, and point it to specific docs.

1. Paste errors you see in the preview or chat

When something breaks, you'll usually see it one of two ways: an error message in your live preview, or Claude itself reporting that something failed in the chat. Either way, just paste what you see straight in–no extra explanation needed. Claude will figure out the context and fix things step by step.

Fix errors from pasted logs
Here's an error I'm seeing in my preview (or that you reported in chat). Can you take a look and fix it with minimal changes?
[Paste the full error message here]

Outcome: The pasted error is resolved and the project runs without the reported issue.

I can just copy-paste errors into the agent to fix them

2. Let Claude search the web and fix

When the answer isn't obvious, just ask Claude to search the web – it can look things up and propose a fix without you leaving the chat.

Search the web and apply a fix
I'm stuck on this error and not sure what's causing it. Could you search the web for the most likely cause and fix, then apply the change to my app?
Here's what I'm seeing:
[Paste the full error here]

Outcome: Claude searched the web, proposed a fix, applied it, and the app compiles cleanly.

I can ask Claude to search the web and fix issues for me

3. Point the agent to specific docs

AI knowledge can be stale. Link the exact docs so the agent can implement current APIs and patterns.

Read this doc and implement correctly
Could you read the documentation below and update my implementation to match the current API? Take a look at how my app is set up so the change fits what I already have.
Docs to use (replace with your target):
- https://ui.shadcn.com/docs/components/button
- https://nextjs.org/docs/app/building-your-application/routing
What I'm trying to achieve:
[Describe the desired outcome briefly]

Outcome: The agent used the provided docs to update code to the latest API, with a clear explanation and diffs.

I can point the agent to specific docs to get current implementations