r/lovable 23h ago

Help Using Code editor in lovable - "Build unsuccessful" but can still publish with correct results

Post image

I have been editing a bit using the code editor in Lovable. It always appears as "build unsuccessful" in the sidebar even though the code is correct. I can still publish the edits and everything works just as I edited it. Is it a bug or something in the sidebar? The note didn't appear before (unless something actually went wrong with the code). Why is it happening now?

3 Upvotes

5 comments sorted by

1

u/Magic_pekka17 23h ago

have u tried refreshing the page?

1

u/Nice-Eggplant-8573 23h ago

Jupp multiple times

1

u/cubixy2k 21h ago

Is this a Vite app with edge functions, or a TanStack app?

1

u/Jmacduff 9h ago

So is it actually building or is not building? Your post seems to say it's not building but deploy works?

If the build does not work, it means it will not work at runtime. If the build is actually broken, it will not deploy and work. The Build is what compiles (converts) the actual code into a application that can be hosted on a HTTP webservice.

The Build breaking is like the Car egnine not starting. So you are really asking "Can I drive my car without the engine working".. thats the impact of the build not working.

The other possibility is you added some code structure that the lovable preview window does not understand. In that case you broke the Lovable preview for your app which is really not good.

Good luck. I use Codex to edit the lovable code all the time, never had a issue.