Bugs and fixes

Don't light your laptop on fire just yet. When things break (and they will), these tips will help you troubleshoot without spiraling.

Cursor's not perfect, but a few smart fixes can get you back on track fast.

My localhost page is blank or broken

Click to see solution →

Solution

This doesn't mean your whole project is broken.

Restart with:

Something isn't showing up on my local server. Can you help me troubleshoot?

← Click to flip back

Cursor isn't doing anything when I prompt

Click to see solution →

Solution

Make sure:

• You selected code first

• You pressed Cmd + K

• Agent Mode is ON

If it's still stuck:

Nothing happened when I submitted this prompt. Can you tell me why?

← Click to flip back

My layout is all messed up

Click to see solution →

Solution

The layout looks broken. Can you check for missing containers, spacing issues, or layout bugs?

← Click to flip back

My image isn't showing up

Click to see solution →

Solution

This image isn't displaying. Can you check if the path is correct and the file is imported properly?

← Click to flip back

I broke something and I don't know what

Click to see solution →

Solution

You probably didn't break it. Try:

Can you check the last change and fix whatever caused the page to break?

← Click to flip back

I pasted a prompt and now I can't find the file

Click to see solution →

Solution

Ask:

Where did you put the new file you created? Can you show me how to find and open it?

← Click to flip back

I got an error in the terminal

Click to see solution →

Solution

Copy the exact error message. Then say:

I got this error: [paste error]. Can you explain what's wrong and fix it?

← Click to flip back

Cursor added too much stuff

Click to see solution →

Solution

This looks overcomplicated. Can you simplify it and remove anything unnecessary?

← Click to flip back

I want to undo what I just did

Click to see solution →

Solution

Use Cmd + Z to undo the edit.

Or ask Cursor:

Undo the last change and go back to how it was before.

← Click to flip back

Everything feels messy and unorganized

Click to see solution →

Solution

Can you clean this up and organize the files so everything's easier to follow?

← Click to flip back

My styles aren't applying

Click to see solution →

Solution

The CSS/Tailwind classes I added aren't working. Can you check for typos, conflicting styles, missing imports, or specificity issues and fix them?

← Click to flip back

npm install failed or 'Module not found'

Click to see solution →

Solution

I'm getting npm errors. Can you check what dependencies are missing and help me install them?

Or try:

Module not found error appeared. Can you fix the imports and install any missing packages?

← Click to flip back

Port 3000 is already in use

Click to see solution →

Solution

Port 3000 is already being used. Can you help me either stop the other process or run this on a different port?

← Click to flip back

Red underlines everywhere (TypeScript errors)

Click to see solution →

Solution

There are TypeScript errors showing up. Can you fix the type issues without changing the functionality?

Tip: These often aren't real problems, just type definitions.

← Click to flip back

I made changes but can't see them

Click to see solution →

Solution

Try these in order:

1. Hard refresh: Cmd + Shift + R

2. Restart the server: Ctrl + C then npm run dev

My changes aren't showing up. Can you help me clear the cache and restart everything?

← Click to flip back

Cursor is editing the wrong file

Click to see solution →

Solution

Be more specific:

Make this change in [exact filename] not in any other file.

Or:

You made changes in the wrong place. Can you move them to [correct file]?

← Click to flip back

How do I save my work?

Click to see solution →

Solution

Your files auto-save! To create a backup:

Can you help me commit my changes to git with a descriptive message about what I built?

← Click to flip back

Cursor deleted something important

Click to see solution →

Solution

Don't panic! Use Cmd + Z to undo.

If that doesn't work:

You accidentally deleted some code. Can you restore what was there before the last change?

← Click to flip back

My button/animation isn't working

Click to see solution →

Solution

The [button/animation/hover effect] isn't responding. Can you check if the event handlers are connected properly and fix any issues?

← Click to flip back

Cursor keeps making the same mistake

Click to see solution →

Solution

Be more direct:

Stop. You keep doing [specific thing wrong]. Instead, please [exactly what you want].

Or start fresh:

Let's approach this differently. Can you [new specific instruction]?

← Click to flip back

Component not updating when data changes

Click to see solution →

Solution

My component isn't re-rendering when the data changes. Can you check if the state is being updated correctly and props are being passed down properly?

Or be specific:

The [component name] should update when [specific data] changes but it's not working.

← Click to flip back

Prompting Tips

  • If you get an error, copy paste the error message directly into the chat, and Cursor will help you troubleshoot
  • Describe the issue clearly: what's broken, what you expected
  • Paste any error messages word-for-word
  • Ask for one fix at a time
  • If you're overwhelmed: ask Cursor to explain what's going on