🔎 What you'll see
Error: listen EADDRINUSE: address already in use :::3000
🤔 Why it happens
Another dev server is already running on that number (port). You probably left an earlier terminal running, or another program is using the same port.
🛠️ How to fix it
- Find the terminal where you started the server earlier and stop it with Ctrl+C.
- Run on a different port (e.g. PORT=3001 or --port 3001).
- If that still fails, restarting your computer usually clears it.
🤖 What to ask your AI
Replace the parts in [ ] with your own details, then paste it in.
When I start my dev server I get 'address already in use :::3000'. Show me how to find and stop the program using port 3000 (on Windows and on Mac), and how to run on a different port.
Other errors
CORS errorThe browser blocks your page from fetching data from another site404 Not FoundThe address or file can't be foundundefined / Cannot read properties of undefinedReading a property of a value that isn't thereis not definedUsing a name that was never declaredSyntaxErrorBrackets or quotes don't match upExposed API keyYou put a secret key in your code or on GitHubMixed ContentAn https page loads something from an http addressBlank white pageYou deployed it and all you see is a blank screenis not a functionCalling something that isn't a functionUnexpected token < in JSONYou expected JSON but got HTMLCannot use import statement outside a moduleThe browser won't accept your import statementfavicon.ico 404The console shows a 404 for favicon.icoData disappears when I refreshYour to-dos or scores aren't being savedPage looks broken or tiny on phonesFine on a computer, weird on mobilegit push rejectedA "rejected" / non-fast-forward errornpm: command not foundYour terminal says npm or node doesn't existEnvironment variables (.env) aren't loadingYou put your API key in .env but it comes out undefinedThe AI keeps failing to fix the same errorYou ask for a fix and nothing changes