Vaadin 24.7 screen stays empty

I have an interesting situation: I’ve got a 24.5 spring& vaadin application that runs fine locally and deployed. After upgrading to 24.7 is still runs fine locally, but once I deploy it I can login, but then the screen stays virtually empty. Familiar for anyone?

Are you seeing any errors in the server or browser logs?

No. I even attached a debugger and see that it starts up correctly, enters the Vaadin servlet, but somehow it does not reach the view. ATM I do not have time to dive into this, so I’l stay on 24.5, but I’ll look into it later.

I don’t know. It is flaky like hell. Sometimes I only partially renders a grid, sometimes it won’t render at all, sometimes it’s fine. I have the feeling it has to do with vite. I’ll stick to 24.5 for now.

Service worker gone crazy maybe? In Vaadin that is related to the @PWA annotation and strong client side caching. That kind of issue has recently happened to me locally (I develop multiple apps at the same time). I had completely white screen and had to clear the service worker in the browser to get forward.

Tips:

  • try clearing (In safari via privacy settings, in Chomium based browser (and FF :thinking:) that can be done via web inspector as well).
  • Remove the @PWA annotation from your app, unless you are really building an installable (most often mobile) web app. It can also slow down the front-end build, without it you might survive with the “default client bundle”.