Combo Box fails to initialize for unclear reasons
jstueckrath opened this issue · 2 comments
I am working on an application that uses Vaadin 14.1.17. When I add a MultiselectComboBox (version 2.3.0) to the main AppLayout, I get the following JavaScript errors and the box fails to render:
TypeError: window.Vaadin.Flow.multiselectComboBoxConnector is undefined
and
TypeError: $0.$connector is undefined
This problem looks a bit like #20, but I suspect the newer Vaadin version to contribute in some way. I also found a workaround by overriding the MultiselectComboBox to use @NpmPackage(value = "multiselect-combo-box", version = "2.3.0")
instead of the currently used version 2.2.0
. This works despite Maven issuing the following warning:
[INFO] --- vaadin-maven-plugin:14.1.17:build-frontend (default) @ project ---
[INFO] Scanning classes to find frontend configurations and dependencies...
[WARNING] Multiple npm versions for multiselect-combo-box found: [2.2.0, 2.3.0]. First version found '2.2.0' will be considered.
Could there be incompatibilities between JavaScript files?
Hi @jstueckrath,
Could you please try with the latest version 2.3.1
and see if the issue still occurs?
Thanks
@gatanaso I just tested it and no longer get a JavaScript error, thanks.