Thank you for your answer but i’m facing the same issues.
i’ve tried to add the @Uses(ComboBox.class) annotation to my MainLayout which extends AppLayout, to my Router, to the Popover’s target component, to the view inside the popover i also tried to set vaadin.devmode.optimizeBundle = true. i also tried to add a hidden combobox to maybe load the javascript connector earlier but that didn’t work either.
the combobox just get rendered in devmode, in production mode i get these client errors:
Cannot read properties of undefined (reading ‘updateSize’)
at Object.eval (eval at jE (FlowClient-DyMGXbet.js:3:45106), :3:22)
Cannot read properties of undefined (reading ‘set’)
at Object.eval (eval at jE (FlowClient-DyMGXbet.js:3:45106), :3:22)
Cannot read properties of undefined (reading ‘confirm’)
at Object.eval (eval at jE (FlowClient-DyMGXbet.js:3:45106), :3:22
and
Cannot read properties of undefined (reading ‘initLazy’)
at HTMLElement.eval (eval at jE (FlowClient-DyMGXbet.js:3:45106), :3:65)
at Object.eval (eval at jE (FlowClient-DyMGXbet.js:3:45106), :3:82)
ha i#m a beginner and i do not know why i did this i saw it in a sample code for mvp pattern. using a normal verticallayout as base works fine - jipie :)
should i close the github issue or is there something that should be fixed anyway?
because im interested in, can you explain me why this is an issue?
The production mode tries to build an optimized executable which only includes JavaScript that is really needed by the application… for this it traverses the bytecode to check for all vaadin related classes which have JavaScript to include them in the production bundle. In your example, it probably failed because it did not check the overwritten getElement