Web components stopped working in Vaadin 25

After migrating to Vaadin 25 my web components works fine in dev but not deployed (prod).
Comparing with Vaadin 24 I no longer see the “generated-flow-imports-XXXXXXX.js” file in the browser dev tools, and I get JS runtime errors about missing functions in the Console.

I suspect it does not pick up the JS files correctly even though the frontend build with Vite does not complain.

I’ll try to see if I can reproduce with a smaller example…

None of my application had that problem. Might be worth to share some things about your setup… e.g. spring boot, structure, new/old theme, polymer vs lit etc.

My guess is that the “chunk-*” files seems to indicate something went wrong during Vite bundling?

Solved by setting optimizeBuilds to false :slight_smile:
Read
How to create a production build in Vaadin Flow