Couldn't find the definition of the element with tag 'mekaso-carousel' in any template file declared using '@JsModule' annotations. Check the availability of the template files in your WAR file or provide alternative implementation of the method getTemplateContent() which should return an element representing the content of the template file.
The Maven dependency and Plugin is correct and i did an Clean Install.
the error indicates that the add-on is not included properly. To get this to work I need some more information (Vaadin version, carousel version, if it is a spring boot project or not).
Spring boot 2.6.6
vaadin 14.8.6
carousel 0.8.0
java 11 (temurin)
thanks for the nice addon, demo looks nice, so far ;)
PS:
Caused by: java.lang.IllegalStateException: Couldn’t find the definition of the element with tag ‘mekaso-carousel’ in any template file declared using ‘@JsModule’ annotations. Check the availability of the template files in your WAR file or provide alternative implementation of the method getTemplateContent() which should return an element representing the content of the template file
at com.vaadin.flow.component.polymertemplate.NpmTemplateParser.getTemplateContent(NpmTemplateParser.java:151)
at com.vaadin.flow.component.polymertemplate.TemplateDataAnalyzer.parseTemplate(TemplateDataAnalyzer.java:223)
at com.vaadin.flow.component.polymertemplate.TemplateInitializer.(TemplateInitializer.java:96)
at com.vaadin.flow.component.polymertemplate.PolymerTemplate.(PolymerTemplate.java:91)
at com.vaadin.flow.component.polymertemplate.PolymerTemplate.(PolymerTemplate.java:106)
at de.mekaso.vaadin.addons.Carousel.(Carousel.java:40)
at de.mekaso.vaadin.addons.Carousel.create(Carousel.java:36)
at de.silab.smartlabel.server.ui.views.MarketingImageCarousel.createCarousel(MarketingImageCarousel.java:24)
at de.silab.smartlabel.server.ui.views.HomeView.createUiStructure(HomeView.java:43)
at de.silab.smartlabel.server.ui.views.HomeView.init(HomeView.java:32)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:389)