Hi All,
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) {
}
}