Skip to main content

Stuck on an Error

Building with Lumi is designed to be fast and intuitive, but like any powerful tool, it can sometimes encounter issues. You might find your code doesn’t run as intended, or the AI misinterprets your instructions, leading to unexpected behavior. Here’s a step-by-step guide to help you resolve these problems and get back to building:
1

Use the 'Attempt fix' Button First

Lumi checks its own code while it works, but when errors still show up in the preview or the build, an Errors detected panel appears above the chat box. Add any details you know in the text box and click Attempt fix. Lumi will analyze the errors, identify the problem, and apply a fix. Fixing build errors this way does not consume credits. If this doesn’t resolve the issue, it’s time to move on to the next step.
2

Diagnose Unexpected Behavior

Sometimes your code runs without errors but doesn’t function as intended. This is known as unexpected behavior and can be tricky to debug. Here’s how to approach it:
  • Review Your Prompt: Double-check your original instructions to ensure they were clear.
  • Isolate the Issue: Examine individual components and logic to pinpoint where things went wrong.
  • Provide Visual Context: Use screenshots or recordings to show the AI exactly what isn’t working.
3

Write More Effective Prompts

Clear and structured prompts produce better outcomes. Follow this format for best results:
  • Project Overview: Briefly describe what you are building.
  • Page Structure: List the key pages and components.
  • Navigation Logic: Explain the intended user flow.
  • Visual Aids: Upload wireframes or mockups.
  • Implementation Steps: Outline the desired build order.
4

Build in a Logical Order

A structured approach to development prevents many common issues. Follow this recommended workflow:
  1. Create the main layout and pages.
  2. Connect your backend or database.
  3. Set up user authentication and roles.
  4. Plan the logic for each feature.
  5. Prompt Lumi to implement features one by one.
5

Use Plan Mode for Guidance

If you’re feeling stuck, switch to Plan Mode, which investigates without changing your code:
  • Ask Lumi to analyze the current state of your project.
  • Request a summary of the solutions already attempted.
  • Prompt for new strategies to tackle persistent problems.
6

Apply Advanced Tactics for Tough Bugs

If the issue persists, try these more advanced techniques:
  • Be Specific: Clearly describe the bug and what you expect to happen.
  • Use Visuals: Screenshots or screen recordings are incredibly helpful for illustrating complex problems.
  • Ask for Alternatives: Directly ask, “What else can we try?” to generate new ideas.
  • Revert: Use Revert on an earlier message to restore your project to a previously working version, then rebuild the problematic feature step-by-step.

Stripe and Other Third-Party Integrations in Remixed/Forked Projects

Remix and Fork are designed to create a complete copy of a project’s code, environment variables, database structure, and other information. For projects integrated with third-party platforms like Stripe, we cannot create new third-party account projects on the user’s behalf. Attempting to do so may result in data configuration conflicts between the original project and the forked or remixed project. Therefore, users must perform manual changes themselves.
  • If a user has integrated third-party platforms like Stripe in the original project, they need to prompt Lumi to update the Secret Key and reconfigure products, webhooks, etc., in the forked and remixed projects.
  • For integrations with general third-party services, users should prompt Lumi to update the relevant keys in the forked and remixed projects.

Common Troubleshooting Areas

Most issues you’ll encounter will fall into one of the following categories:
  • UI and Layout Glitches
  • API or Backend Errors
  • Prompt Misinterpretations
  • AI Unresponsiveness or Malfunctions
  • Platform or Integration Failures
Expand the sections below to identify specific symptoms and find actionable solutions for each.

General issue

Switch to Plan Mode and ask: “Something isn’t working correctly. Can you explain the problem and tell me what you’ve already tried?”
  • Inspect the component hierarchy and review the applied styles.
  • Use screenshots to clearly illustrate any visual glitches.
  • Prompt Lumi directly: “This element is misaligned. Please fix it.”
  • Try this prompt: “Let’s take a step back. Analyze the error and propose an alternative solution.”
  • Break the task down into smaller, more manageable steps.
  • If errors persist, use the Revert button on an earlier message to roll back to a working version.
First, try a hard browser refresh. If an Errors detected panel appears, click Attempt fix. If the preview still doesn’t load, please contact support for assistance.
You don’t have to wait for the run to finish. Type a note in the chat box while Lumi is working: press Enter to insert it so Lumi reads it before its next step, or Cmd/Ctrl + Enter to insert it and interrupt the current step. You can also click the stop button and send a clearer prompt.

AI Reliability

  • Write clear, well-structured prompts.
  • Employ reverse meta prompting techniques.
  • Test prompts in Plan Mode before implementing major changes.
This is an unexpected issue. Please report it to our support team for immediate assistance.
Refine your prompt to clarify your objective, or request a step-by-step debugging guide from the AI.
Implement changes incrementally. If problems continue, revert to a stable version or use Plan Mode for debugging.
If you encounter error loops or flawed logic, revert to a stable version. Then, provide more specific context in your next prompt, using Visual Edits to point at the exact element, or by attaching screenshots or a document that describes the requirement.
The AI may be misinterpreting your request or targeting the wrong files. Provide highly specific instructions, or make the edits manually.
This is an unexpected issue. Please report it to our support team for immediate assistance.
  • Avoid retrying the exact same prompt; instead, simplify or rephrase it.
  • Ask the AI: “What solutions have we already attempted?”
  • Restore a previous working version of your project.

Credits

When your Chat credits run out during a run, Lumi stops and shows an Upgrade button. To continue, upgrade your plan, buy an add-on pack if you are on Pro, or wait for your free credits to refresh. Then ask Lumi to continue where it left off. See Pricing Plans and Credits.
Chat credits are used when you chat with Lumi to build or change your project. Resource points are used when your published site runs cloud features such as AI calls, email sending and file storage.

Publishing and Domains

Changes you make in the chat appear in the preview first. Your live site only updates when you publish again, so click Publish after you are happy with the changes. If the site still looks old, do a hard refresh in your browser to clear its cache.
  • Make sure the project has been published. A custom domain can only be added after the first publish.
  • Check that the host record in your DNS provider exactly matches the record shown on the Domains page in your workspace.
  • Click Check Status to refresh. DNS changes can take up to 48 hours to take effect.
  • If it still fails, click Retry, or delete the domain and add it again. You can also contact the team through Support.
  • Custom domains require a paid plan. If your subscription has ended, resubscribe to reactivate the domain.
See Custom Domain for the full steps.

Site Features

For security and privacy reasons, your site can only send emails to addresses that are registered users of your project. Make sure the recipient has signed up on your site, or add them in Cloud → User.
Open Cloud → User and check the login method. If it shows Credentials pending, add the Client ID and Client Secret from the provider’s developer console. The button only appears after the credentials are added and the method is enabled. Also make sure the callback URL shown in the panel is registered with the provider.