Giter Site home page Giter Site logo

Uncaught DOMException: Failed to execute 'define' on 'CustomElementRegistry': the name "vaadin-combo-box-item" has already been used with this registry about multiselect-combo-box-flow HOT 3 CLOSED

gatanaso avatar gatanaso commented on June 25, 2024 2
Uncaught DOMException: Failed to execute 'define' on 'CustomElementRegistry': the name "vaadin-combo-box-item" has already been used with this registry

from multiselect-combo-box-flow.

Comments (3)

montadap avatar montadap commented on June 25, 2024 1

The Bug only occurs when the original vaadin ComboBox and the MultiselectComboBox are used together in one project.

It can be replicated by replacing one MultiselectComboBox with a normal ComboBox in the DemoView
here is a link to a branch where i've replicated the issue
https://github.com/montadap/multiselect-combo-box-flow/tree/issue32

from multiselect-combo-box-flow.

montadap avatar montadap commented on June 25, 2024

I have a smiliar problem, my UI also stopped rendering after adding the following code:

private MultiselectComboBox<String> mcbSchnittstellen = new MultiselectComboBox<>();

The console in my Firefox browser give the following error
NotSupportedError: 'vaadin-combo-box-item' has already been defined as a custom element vaadin-combo-box-item.js:178 <anonym> vaadin-combo-box-item.js:178 es6 vaadin-bundle-91c7c5262a1e3c609f26.cache.js:2612 __webpack_require__ vaadin-bundle-91c7c5262a1e3c609f26.cache.js:20 <anonym> vaadin-combo-box-dropdown-wrapper.js:1 es6 vaadin-bundle-91c7c5262a1e3c609f26.cache.js:2588 __webpack_require__ vaadin-bundle-91c7c5262a1e3c609f26.cache.js:20 <anonym> vaadin-combo-box-light.js:1 es6 vaadin-bundle-91c7c5262a1e3c609f26.cache.js:2624 __webpack_require__ vaadin-bundle-91c7c5262a1e3c609f26.cache.js:20 <anonym> vaadin-combo-box-light.js:1 es6 vaadin-bundle-91c7c5262a1e3c609f26.cache.js:2684 __webpack_require__ vaadin-bundle-91c7c5262a1e3c609f26.cache.js:20 <anonym> multiselect-combo-box.js:1 es6 vaadin-bundle-91c7c5262a1e3c609f26.cache.js:2768 __webpack_require__ vaadin-bundle-91c7c5262a1e3c609f26.cache.js:20 <anonym> generated-flow-imports.js:1 es6 vaadin-bundle-91c7c5262a1e3c609f26.cache.js:2780 __webpack_require__ vaadin-bundle-91c7c5262a1e3c609f26.cache.js:20 <anonym> vaadin-bundle-91c7c5262a1e3c609f26.cache.js:84 <anonym> vaadin-bundle-91c7c5262a1e3c609f26.cache.js:87 InnerModuleEvaluation self-hosted:1605 evaluation self-hosted:1559

from multiselect-combo-box-flow.

gatanaso avatar gatanaso commented on June 25, 2024

Hi both 👋

Thank you for reporting this issue and providing extra details 🙏

The error message is most likely due to the fact that 2 different versions of the vaadin-combo-box are being used. The latest version of the MultiselectComboBox requires vaadin-combo-box version 5.0.9 or higher.

If using Vaadin version 14.0.0, as @montadap branch also shows, this issue is visible. This is mostly due to Vaadin versions prior than 14.0.13 having lower dependency versions of the vaadin-combo-box.

Therefore, updating your project to at least Vaadin version 14.0.13 should resolve the issue (I personally tested this on @montadap branch and there were no issues in the browser console).

Hope this helps,
Goran

from multiselect-combo-box-flow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.