Trying to use charts with Vaadin 14.0.1 + Spring Boot and failed with excep

Trying to use charts (2.0.0.beta2) with Vaadin 14.0.1 + Spring Boot and failed with exception:

Caused by: java.lang.IllegalStateException: Couldn't find the definition of the element with tag 'apex-charts-wrapper' 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

Do somebody know why it happening?

Apparently the @NpmPackage Annotations in this dependency are being ignored by the dev-updater when using Spring Boot, meaning that the needed JS dependency are not available during webpack/runtime. [I’ve created an issue for this on Github]
(https://github.com/vaadin/flow/issues/6307)

changed apexchart 2.0.0.beta4, also tried raise vaadin version to 14.0.2 but issue still reproduced

This issue will be fixed by [Vaadin Spring 12.0.4]
(https://github.com/vaadin/spring/issues/481)

definitely not fixed

Please open an issue on Github with more details, I’ll gladly help you out on this.

Greetings! Same error, but on a different annotation: @‘HtmlImport’.
Doesn’t build graphics with an error - java.lang.IllegalStateException: Couldn't find the definition of the element with tag 'apex-charts-wrapper' in any template file declared using @'HtmlImport' 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

  • vaadin-spring version: 12.0.5,
  • apexcharts version: 2.0.0.beta4,
  • vaadin-core version: 14.0.4

You are using the compatiblity mode which is unfortunatly currently not supported.