Hi all,
We are evaluating vaadin for an upcoming project. Currently we are using spring boot and VueJs but want to improve our workflow by switching to vaadin.
I’m currently working on an application that should use [CRUD components]
(https://vaadin.com/components/vaadin-crud).
The issue is that as soon as vaadin-crud-flow
is added as a dependency a DOMException on page load occurs and the UI wont load properly.
This is what was added to the pom.xml according to the instructions of the CRUD component.
<dependencies>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-crud-flow</artifactId>
</dependency>
</dependencies>
This is the exception that’s thrown if vaadin-crud-flow
is added to the dependencies.
Uncaught DOMException: CustomElementRegistry.define: 'vaadin-dialog-overlay' has already been defined as a custom element vaadin-dialog.js:76
<anonymous> vaadin-dialog.js:76
js vaadin-bundle-9eeac15af94d1cd63ea2.cache.js:1491
__webpack_require__ vaadin-bundle-9eeac15af94d1cd63ea2.cache.js:20
<anonymous> vaadin-dialog.js:1
js vaadin-bundle-9eeac15af94d1cd63ea2.cache.js:1515
__webpack_require__ vaadin-bundle-9eeac15af94d1cd63ea2.cache.js:20
<anonymous> vaadin-confirm-dialog-styles.js:1
js vaadin-bundle-9eeac15af94d1cd63ea2.cache.js:1539
__webpack_require__ vaadin-bundle-9eeac15af94d1cd63ea2.cache.js:20
<anonymous> vaadin-confirm-dialog.js:1
js vaadin-bundle-9eeac15af94d1cd63ea2.cache.js:1551
__webpack_require__ vaadin-bundle-9eeac15af94d1cd63ea2.cache.js:20
<anonymous> vaadin-crud.js:1
js vaadin-bundle-9eeac15af94d1cd63ea2.cache.js:1743
__webpack_require__ vaadin-bundle-9eeac15af94d1cd63ea2.cache.js:20
<anonymous> generated-flow-imports.js:1
js vaadin-bundle-9eeac15af94d1cd63ea2.cache.js:5823
__webpack_require__ vaadin-bundle-9eeac15af94d1cd63ea2.cache.js:20
<anonymous> vaadin-bundle-9eeac15af94d1cd63ea2.cache.js:84
<anonymous> vaadin-bundle-9eeac15af94d1cd63ea2.cache.js:87
InnerModuleEvaluation self-hosted:2356
evaluation self-hosted:2327
While I’m not entirely convinced that the CRUD component is the actual cause, due to my inexperience with vaadin I’m unable to track it down further.
Does anyone have input on how to handle this issue or a direction to point me towards?