Skip to main content
Quick solutions to common issues you might encounter.

Preview Issues

Preview Not Loading

Symptoms: White screen, infinite loading, or error message Solutions:
  1. Wait a moment - The preview rebuilds after each change
  2. Send a message - Any message triggers a fresh rebuild
  3. Check for errors - Look at the error message in chat
  4. Refresh - Click the refresh button in preview panel
  5. Check internet - Ensure stable connection

Preview Stopped

Symptom: Preview shows an error or won’t refresh Cause: A build may still be running or may have hit an error Solution: Send any message or click refresh to rebuild the preview

Changes Not Showing

Symptoms: Made changes but preview looks the same Solutions:
  1. Wait for the rebuild to finish (a few seconds)
  2. Click refresh in preview
  3. Hard refresh browser (Cmd/Ctrl + Shift + R)
  4. Check for errors that might prevent rendering

Build Errors

Syntax Errors

Symptom: Error mentioning unexpected token, syntax, or parsing Solution:

Missing Dependencies

Symptom: “Cannot find module” or “Module not found” Solution:

Type Errors

Symptom: TypeScript errors about types Solution:

Database Issues

Connection Failed

Symptoms: “Failed to connect to database” Solutions: Kleap Database is fully managed by Kleap — there’s nothing to provision or pause. If data calls fail:
  1. Confirm Kleap Database is enabled for this app (it’s opt-in)
  2. Re-publish so the latest code is live
  3. Check the error message in chat for the failing query

Queries Return Empty

Symptom: Data exists but queries return empty array Causes:
  • Per-user data rules blocking access (the row belongs to another user)
  • Wrong table name
  • Query filters too restrictive
Solution:

Auth Not Working

Symptoms: Can’t sign up, login fails, session lost Solutions: Kleap Database provides built-in email/password accounts — there are no external auth dashboards or redirect URLs to configure.
  1. Confirm Kleap Database (with accounts) is enabled for the app
  2. Check for errors in the browser console
  3. Describe the exact failure to the AI so it can fix the flow

Deployment Issues

Build Failed

Symptom: Publish fails with build error Solutions:
  1. Check the build log for specific error
  2. Share error message with AI
  3. Common fixes: missing dependencies, type errors

Environment Variables Missing

Symptom: Works in preview but fails in production Cause: Environment variables not set for production Solution:
  1. Go to Settings > Environment
  2. Add all required variables
  3. Set them for Production scope
  4. Redeploy

Domain Not Working

Symptom: Custom domain shows error or old site Solutions:
  1. Verify DNS records are correct
  2. Wait for propagation (up to 48 hours)
  3. Check SSL certificate status
  4. Ensure domain is verified in settings

Visual Issues

Layout Broken

Symptom: Elements overlapping, wrong positioning Solution:

Not Responsive

Symptom: Looks bad on mobile Solution:

Styling Not Applied

Symptom: CSS changes not appearing Solutions:
  1. Check for CSS conflicts
  2. Verify class names are correct
  3. Check Tailwind config if using custom values

Performance Issues

Page Loading Slowly

Solutions:
  1. Optimize images
  2. Add loading states
  3. Keep components static and only hydrate interactive islands
  4. Lazy load non-critical content

Too Many Re-renders

Symptom: Page feels sluggish, constant updates Solution:

Quick Fixes

ProblemQuick Fix
Preview stuckSend any message to rebuild
Build errorShare error message with AI
Styling brokenClear browser cache, refresh
Auth not workingCheck Kleap Database is enabled
Deploy failedCheck build logs
Data not loadingCheck per-user data rules
Changes lostUse version history to restore

When Nothing Works

Roll Back

  1. Go to version history
  2. Find a working version
  3. Restore it
  4. Try a different approach

Start Fresh

For severe issues:
  1. Create a new app
  2. Use a template as base
  3. Re-implement features carefully
  4. Test after each change

Get Help

Error Reference

Detailed guide to specific error messages