Open Marczeeee opened 4 weeks ago
Can you try to configure maven plugin with <optimizeBundle>false</optimizeBundle>
and see if the error persists?
Can you try to configure maven plugin with
<optimizeBundle>false</optimizeBundle>
and see if the error persists?
It worked! With setting this to false the errors gone and everything works fine! Can I use this setting safely in a production environment? Will be any downside of it?
Can you please tell us if you are using reflection to load components? You can also have a look at this for more details: https://vaadin.com/docs/latest/production/production-build#bundle-component-loading-optimizations
This setting is safe to use. You can also find out more about it here: https://vaadin.com/docs/v23/configuration/maven#build-front-end-goal-parametershttps://vaadin.com/docs/v23/configuration/maven#build-front-end-goal-parameters
You have also mentioned that you used 23.4.10 version. Did you mean 24.3.10?
We don't use reflections directly, but use Spring (not Spring-boot) which I think uses reflection.
Yes, the correct version is 24.3.10! Fixed this in my opening comment as well.
Thank you for your help!
Description of the bug
When I try to pop up a Dialog in my application from a MenuBar element (using a Button as menu item, it's invoking the Dialog when clicked) with a ComboBox and/or a Grid on it, the Dialog shows but without the components, and there are JS exceptions on the console.
The following errors are shown on the console in Chrome:
Some observations and facts:
Expected behavior
The Dialog with a ComboBox and/or a Grid should show all the components added, without any client-side JS errors.
Minimal reproducible example
Open a Dialog with a ComboBox and/or a Grid on it, and it will open with client-side JS errors.
Versions