Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

140
Views
com.google.gwt.core.client.JavaScriptException: (TypeError) when I call method from constant in JS file from GWT

I have a file with this JS

const sdk = new ChartsEmbedSDK({
    baseUrl: 'https://mongodb.com....',
});

const chart = sdk.createChart({chartId: '1111111111111111111111111111'});

function loadDashboard() {
    chart.render(document.getElementById('chart'));
}

And call that from GWT code:

public static native void loadDashboard() /*-{
        $wnd.loadDashboard();
    }-*/;

It works. But when I do next In JS:

const sdk = new ChartsEmbedSDK({
    baseUrl: 'https://mongodb.com....',
});

const chart = sdk.createChart({chartId: '1111111111111111111111111111'}); 

and call:

public static native void loadDashboard() /*-{
    $wnd.chart.render($doc.getElementById('chart'));
}-*/;

I get error:

Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError) : ((intermediate value)(intermediate value) , $wnd).chart.render is not a function
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!