🔎 What you'll see
(no error message — just a white screen)
🤔 Why it happens
Most of the time a JavaScript error stopped the page before it could draw anything, or a wrong file path kept the CSS/JS from loading. For framework apps like React or Vue, a wrong build output path setting (base) is also common.
🛠️ How to fix it
- Press F12 (developer tools) → Console tab and read the red errors first. The cause is almost always there.
- In the Network tab, look for files shown in red (404).
- For a framework app, make sure you uploaded the build output folder (dist, build). Uploading the source folder gives you a blank page.
- If you deployed to a subfolder, set the base path in your build config to that folder.
🤖 What to ask your AI
Replace the parts in [ ] with your own details, then paste it in.
My deployed page shows only a white screen. The developer tools Console shows [error], and the Network tab shows [failed files]. I used [React/Vite etc.] and deployed to [where]. Tell me the cause and the steps to fix it.
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 addressis 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 existPort 3000 is already in useYour dev server says the port is takenEnvironment 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