Why don't you use Charba? https://github.com/pepstock-org/Charba
Charba is providing the wrapper of Chart.js for GWT and J2CL. Il giorno domenica 11 settembre 2022 alle 14:53:25 UTC+2 [email protected] ha scritto: > I have added a pom.xml file in the project attached below while running > the command - mvn clean install I got an error - Compiling module > com.jsinteropdemo.JSInteropDemo > [INFO] [ERROR] Module has no entry points defined > Also attaching the screenshot of my project folder and default .XML file > On Sunday, September 11, 2022 at 5:59:36 PM UTC+5:30 [email protected] > wrote: > >> Check your dependencies. That is an add-on library which must be included >> explicitly. >> >> On Sun, Sep 11, 2022 at 5:10 AM Manas <[email protected]> wrote: >> >>> Hi All, >>> >>> Good Day! >>> >>> I'm new in GWT and I'm going through documentation and JSInterop. I'm >>> facing issues with implementing chart.js using JSInterop. Can anyone guide >>> me on how to resolve and keep things working? I am facing an error - "The >>> import elemental2 cannot be resolved" >>> >>> code is - >>> package chartjs; >>> >>> import elemental2.dom.HTMLCanvasElement; => facing error on this line >>> import jsinterop.annotations.JsPackage; >>> import jsinterop.annotations.JsType; >>> >>> @JsType(isNative = true, namespace = JsPackage.GLOBAL) >>> public class Chart { >>> >>> public Chart(HTMLCanvasElement canvasElement, ChartConfiguration >>> configuration) { >>> } >>> } >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "GWT Users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/google-web-toolkit/d85e1313-7a55-482f-b712-022cf6fef5acn%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/google-web-toolkit/d85e1313-7a55-482f-b712-022cf6fef5acn%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/0b0ae3fa-2622-4762-b1e5-ec49bceca637n%40googlegroups.com.
