Version keeps breaking (unhandled promise injection)

I have a working deployed version (last updated - Day before Yesterday)

When asking v0 to change the page titles to something different than v0 app it says it only changed a few lines but its showing me a layout.tsx file that i didnt see before with way more lines… after the change the whole applications stops working, it keeps refreshing my window. I already tried 40+ prompt and different ways to fix this issue but its just not working. It looks like a style corruption but i just cant figure it out and v0 also cant, Max had a quick look aswell and said it was maybe the database connection, but i also tried it without the database stuff and it still happens and the errors after 2min of waiting also shows some kind of styling issues.

Video: https://www.youtube.com/watch?v=kTuqkr0pRy8

Recent fork: https://v0.app/chat/duplicate-of-emwheels-order-platform-CkN9iznwVaa

please let me know,

  • Marnix

Also tried to not use the mentioned font that you can see in the screenshot since it was giving me a few warnings. But still same problem.

Okay so update, in chat; https://v0.app/chat/duplicate-of-emwheels-order-platform-CkN9iznwVaa#F0sqZ1Pjeal7zpD6TPYGDYnkt2jErsIU

i have deleted the global.css and layout.tsx, and refreshed the preview, and now everything is working… what is going on Xd. please check it out..

The problem was that V0 kept generating a global.css in the file preview, but the app likely uses a layout / global.css file that already exists elsewhere in the codebase (possibly in a parent directory or a default Next.js layout) without the conflicting styling imports. Still seems like a bug to me since v0 couldnt fix my issue by itself…

Hey, @marnix-3108!

This is super helpful. Thank you! :smiley:

We’ll make sure that we get this feedback shared with the v0 team.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.