Skip to content
VibecodeZero

My app shows a blank screen. What do I do?

Updated First published

On this page (4)
  1. Symptom
  2. Cause
  3. Prompt to paste
  4. How not to burn credits

Symptom

The preview or the published link opens, but nothing appears, no text and no buttons. Sometimes the tool shows a red warning or a button to try to fix the error automatically.

Cause

The app is a set of instructions that the browser follows from top to bottom. If one of them is wrong right at the start, the browser stops and never draws anything on the screen. That’s the blank screen.

The most common causes are a recent change that broke another part of the app, a piece of code the AI forgot to create, or a piece of information the app expected to find and didn’t.

Messages like Cannot read properties of undefined or is not defined are common in this case. You don’t need to understand them. Just copy them in full to the AI.

In Lovable

When a build error appears, Lovable shows a Try to fix button on the activity card. It reads the logs and attempts a fix. Lovable’s own guide says to use it once or twice. If the error survives, describe what is broken and where, paste the error, and switch to Plan mode so Lovable looks for the cause before changing more code. If the error mentions building, see Lovable build errors.

To go back, click History in the top bar of the editor (or open Project → History), pick the last version that worked and click Revert. Reverting brings back the code only, not the data in your database.

In Bolt

Bolt’s help center page on preview issues says a white screen can mean a runtime error that Bolt can’t detect on its own. After a hard refresh, send The preview is not showing, fix this. once. Bolt’s docs say that if this works, it works on the first try, and retrying the same prompt is unlikely to help. After that, copy the errors from the browser console into the chat. The full steps are in Bolt preview not loading.

When the preview works and the public link doesn’t, the cause is usually on the live site, not in your latest request. See Lovable preview works but the published site doesn’t. In Bolt, see Bolt preview works but the deployed site is blank.

If the AI keeps saying it fixed it and the screen stays blank, read The AI says it fixed it, but the error is still there.

Checked November 26, 2026 in the Lovable docs (Debug and improve your app, Project chat and Version history) and the Bolt Help Center (Preview issues).

Prompt to paste

Copy the text below, replace what’s in brackets and send it in the chat of the tool you’re using.

Paste into the AI
The app shows a blank screen. Nothing appears.
This started after I asked: [the last request you made].
The error message that appears is:
[paste the whole message; if none appears, write "no message appears"]

Find out what is stopping the app from opening and fix it, changing only what's necessary. Then tell me in one sentence what the problem was.

How not to burn credits

  • Reload the page before you send anything. Bolt's help center suggests a hard refresh (Ctrl + Shift + R on Windows, Cmd + Shift + R on Mac) or opening the project in a new tab. If the app comes back, you didn't spend anything.
  • Send the whole error message and your last request in a single message. Several short messages like "still blank" each use part of your limit.
  • In Lovable, use Try to fix once or twice at most. Your account gets 10 free fixes, shared between Try to fix and fixes for security findings across all your workspaces and projects, and each one becomes free again 24 hours after you use it. After that, each fix uses credits.
  • If the screen is still blank after two or three attempts, stop. Go back to the last version that worked, using the tool's version history, and ask again for the change that caused the problem, in smaller parts.

How Lovable counts credits, and what the free plan includes: Lovable credits explained.

Questions people ask

Why is my app showing a blank white screen?

Usually because the app hit an error before it could draw anything. The most common causes are a recent change that broke another part of the app, a piece of code the AI forgot to create, or a setting the app expected and didn't find. The error message tells the AI which one it is.

Where do I find the error message?

The tool usually shows the error near the preview, in red or in a warnings panel. If there is none, you can open the browser console. Bolt's help center gives the shortcuts Cmd + Option + J on Mac and Ctrl + Shift + I on Windows. Reload the page with the console open and copy what appears in red.

Can the AI find the error on its own?

Often, yes. Lovable's docs say it reads your app's console logs itself. Pasting the exact error still helps, especially when the blank screen only happens on the published link and not in the preview.

Should I click the automatic fix button?

You can try it once or twice. In Lovable it's called Try to fix, and your account gets 10 free fixes, shared with fixes for security findings. If the error comes back or a different one appears, stop and use the prompt on this page, which gives the AI more context.

What if the preview works but the published link is blank?

Then the code builds in the editor but something is different on the live site. Check that you published your latest version, then follow the steps for that case on the page about the preview working and the published site not working.

New guides by email. An email when we publish a new guide, error fix or chapter, in plain English. Subscribe