Skip to content

Add-on is not compatible with Vaadin 24.4 #14

@javier-godoy

Description

@javier-godoy

Describe the bug

After upgrading the pom to 24.4.0.beta5, starting the demo fails with the following message:

(index):6 Uncaught (in promise) DOMException: Failed to execute 'define' on 'CustomElementRegistry': the name "vaadin-button" has already been used with this registry
    at window.customElements.define (http://127.0.0.1:8080/:6:829)
    at VAADIN/build/generated-flow-imports-DRaju_tl.js (http://127.0.0.1:8080/VAADIN/build/generated-flow-imports-DRaju_tl.js:3522:20)
    at __require (http://127.0.0.1:8080/VAADIN/build/generated-flow-imports-DRaju_tl.js:3:50)
    at http://127.0.0.1:8080/VAADIN/build/generated-flow-imports-DRaju_tl.js:44377:16

Expected behavior

The demo should start with no issues

Minimal reproducible example

  1. Set vaadin.version in v24 profile to 24.4.0.beta5 and add the following dependency
<dependencies>
    <dependency>
	<groupId>com.flowingcode.vaadin.addons.demo</groupId>
        <artifactId>commons-demo</artifactId>
        <version>4.0.0</version>
    </dependency>
</dependencies>
  1. Run mvn jetty:run -Pv24

Add-on Version

1.0.2-SNAPSHOT

Vaadin Version

24.4.0.beta5

Additional information

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions