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

152
Views
com.google.gwt.core.client.JavaScriptException: (TypeError) cuando llamo al método desde una constante en el archivo JS desde GWT

Tengo un archivo con este JS

 const sdk = new ChartsEmbedSDK({ baseUrl: 'https://mongodb.com....', }); const chart = sdk.createChart({chartId: '1111111111111111111111111111'}); function loadDashboard() { chart.render(document.getElementById('chart')); }

Y llama eso desde el código GWT:

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

Funciona. Pero cuando hago lo siguiente en JS:

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

y llama:

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

me sale 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!