Closed finn0s closed 1 year ago
Seems like it ships with a quite old version of Momentjs. If you upgrade it to a newer one, it works without problems
The addon also includes a META-INF/VAADIN/config/flow-build-info.json
which can interfere with the project and should be removed
Closing this as its not an issue of Flow or Vaadin platform but its caused by an add-on not maintained by Vaadin. Please consider reporting or contributing to ChartJs addon to at least upgrade to newer momentjs.
Description of the bug
I'm using the ChartJs addon in my vaadin 24 application. When I start the application without hotdeploy enabled its works fine. But with hotdeploy i get this javascript error.
The ChartJs addon includes a js script with
@JsModule
Annotation. This script uses thethis
keyword. Ifhotdeploy
is enabled thethis
keyword is alwaysundefined
I'm using hotdeploy as a workaround for another bug appeared during the migration from vaadin 23 to vaadin 24 described in #16679. @Silicat-git said he fixed the problem with enabling hotdeploy: https://github.com/vaadin/flow/issues/16679#issuecomment-1522934112
Expected behavior
I expect that the ChartJs addon works with vaadin 24 and hot deploy enabled.
Minimal reproducible example
Example: vaadin-hotdeploy.zip To enable/disable hotdeploy, set the
vaadin.frontend.hotdeploy
to true or false in thesrc/main/resources/application.properties
fileVersions