GWT Charts: Did you forget to inherit a required module?

If you’re just getting started with GWT Charts, it’s possible that you’ll come across a very common error: “No source code is available for type com.googlecode.gwt.charts.client.corechart.*; did you forget to inherit a required module?”. This is how you can resolve it:

This error is caused by not inheriting com.googlecode.gwt.charts.Charts in your project’s xml file.

Just add this line into *gwt.xml file:

Here are two screenshot to illustrate the change.

This is where you’d find a file for a hypothetical project called: MortgageCalculator:

2014-09-12_5-31-40

And this is where the inherit line needs to be added:

2014-09-12_5-32-08

If this helped in any way, don’t hesitate to leave a comment below.

 

 

Facebook Comments