Common Issues and Solutions
Building and Debugging Approach
- Try to Fix It Button: Use Lovable's built-in fix button for simple errors
- Structured Prompting: When the fix button doesn't work, use a structured prompt
- External Help: Use ChatGPT or other AI tools for complex issues
Prompt Template for Bug Fixing
<aside>
💡
I'm encountering this error: [ERROR MESSAGE]
I've tried using the "Try to fix it" button but it hasn't resolved the issue.
Here's what I'm seeing:
[Describe the problem in detail]
[If applicable, include console errors]
What's causing this issue and how can we fix it?
</aside>
Blank Screen or Infinite Loading
- Check for JavaScript errors in the browser console
- Look for errors in your component hierarchy
- Try a hard refresh (Ctrl+F5 or Command+Shift+R)
- Use the "Try to fix" button in Lovable
Authentication Issues
- Verify that your Supabase URL and API key are correct
- Check your authentication configuration in Supabase
- Ensure your site is added to Supabase's allowed origins
- Verify email verification settings are correct
Database Connection Problems
- Confirm that your Supabase project is properly linked
- Check for Row Level Security (RLS) policy issues