Lit template not found in dev mode
Closed this issue · 2 comments
When using Vaadin 24.3.3 and apex charts 24.0.0:
In dev mode the apex charts template cannot be found:
2024-02-08T14:27:38.144+01:00 INFO 63456 --- [io-17080-exec-3] c.v.f.c.l.i.LitTemplateParserImpl : Couldn't find the definition of the element with tag 'apex-charts-wrapper' in any lit template file declared using '@jsmodule' annotations. In a Spring Boot project, please ensure that the template's groupId is added to the vaadin.whitelisted-packages property. Otherwise, please Check the availability of the template files in your WAR file or provide alternative implementation of the method LitTemplateParser.getTemplateContent() which should return an element representing the content of the template file
In production mode the charts are properly rendered.
Any workarounds?
Try add the package to application.properties in spring, it worked for me in dev
vaadin.whitelisted-packages = com.vaadin,org.vaadin,dev.hilla,[...],com.github.appreciated
Thx, that worked.