Lovable, Bolt, Cursor, Replit, and v0
Your AI-built app broke? Find the fix.
Paste the error from the screen. These are plain-English repairs for the problems that show up after you deploy — ranked with the ones builders hit most often first.
Show fixes for
40 fixes
Most common problems first.
- Rank 7. Stripe webhook failing: 404, 307/308 redirect, timeout or 500
Stripe shows webhook deliveries Failed with 3xx, 4xx, 5xx or timed out? Point it at the exact final URL and respond 200 fast.
- Rank 9. Supabase Edge Function CORS error: Response to preflight request doesn't pass access control check
Calling a Supabase Edge Function from the browser fails with a CORS/preflight error? Handle OPTIONS and return corsHeaders on every response.
- Rank 16. Supabase confirmation or password reset email not arriving
Users never get the Supabase confirm or reset email? Check the rate limit, set up custom SMTP and fix the link's Site URL.
- Rank 18. infinite recursion detected in policy for relation
Supabase error 42P17 "infinite recursion detected in policy for relation"? Two RLS policies check each other. Break the loop with a function.
- Rank 19. permission denied for table (Supabase error 42501)
Supabase "permission denied for table"? The role lacks a GRANT on the table, which is checked before RLS. Add the grant, then a policy.
- Rank 20. Supabase Storage upload fails: new row violates row-level security policy
Image/file upload to Supabase Storage fails with an RLS error? Add policies on storage.objects for INSERT (plus SELECT/UPDATE for upsert).
- Rank 22. 500: INTERNAL_SERVER_ERROR / FUNCTION_INVOCATION_FAILED on Vercel
Live site shows 500 FUNCTION_INVOCATION_FAILED but works locally? Your server code crashed. Read the runtime logs, then check env vars.
- Rank 24. Hydration failed because the server rendered HTML didn't match the client
Next.js "Hydration failed" error? The server and browser drew different HTML. Fix nesting, window/localStorage use and dates.
- Rank 26. Vercel custom domain shows "Invalid Configuration"
Added your domain to Vercel and it says Invalid Configuration? Set the DNS records Vercel shows at your registrar and wait for DNS.
- Rank 27. Lovable custom domain not working or stuck pending
Connected your own domain to Lovable and it won't load or stays pending? Check the DNS records Lovable gives you and remove conflicting ones.
- Rank 28. Replit deployment fails or published app won't load (server must listen on 0.0.0.0)
Replit preview works but publishing fails or the URL won't load? Make your server listen on 0.0.0.0, set production Secrets, check ports.
- Rank 32. Build failed: npm ERR! ERESOLVE
Vercel stops on npm ERR! ERESOLVE unable to resolve dependency tree? npm is refusing a peer dependency clash. Fix the versions, or override the install command on purpose.
- Rank 33. ReferenceError: window is not defined
Next.js crashes with window is not defined? The page is rendered on the server, where window does not exist. Read it after the component mounts.
- Rank 35. Clerk sign-in keeps redirecting in a loop
The app bounces between the page and Clerk sign-in forever? The redirect target is protected too, or the force-redirect URL points back at the gate.
- Rank 38. Lovable GitHub sync is behind, diverged, or created a new repo
GitHub and Lovable don't match? Lovable syncs one branch, won't reattach an old repo, and replaces its copy if you rewrite history.
- Rank 39. Prisma on Vercel: query engine not found
Vercel runs the app and Prisma can't find its query engine? The Rust engine file was left out of the serverless bundle, or Prisma Client was generated for the wrong machine.
- Rank 40. Supabase error: Email address not authorized
Sign-up tells the user Email address not authorized? The built-in mailer only sends to your Supabase organization. Custom SMTP sends to everyone else.
No fix matches that.
Try the exact words from the error, or clear the platform filters. If it's still stuck, you canask for help.
Comparisons
No failure-rate scores. These pages compare what Lovable, Bolt, Cursor, Supabase, Firebase, Vercel, and Netlify document.
Can't fix it? Get help.
If the steps didn't clear the error, send what the screen says. A person can take a look. This is a request for a paid fix, not an instant chat.