Just started getting "Uncaught TypeError: d is not a function(…)e @ loader.js:149" when trying to load 'corechart'

67 views
Skip to first unread message

Xerxes Dotiwalla

unread,
Nov 22, 2016, 4:46:38 PM11/22/16
to Google Visualization API
As far as I can tell, it just started today:

loader.js:149 Uncaught TypeError: d is not a function(…)e @ loader.js:149

My code is:

<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<snip>
google.charts.load('current', {'packages': ['corechart']});

Dropping to v44 seems to fix it:

google.charts.load('44', {'packages': ['corechart']});

Please advise. Thanks.

Adam Youngers

unread,
Nov 22, 2016, 4:48:33 PM11/22/16
to Google Visualization API
I'm seeing the same on my sites.  The documentation pages are broken too...

Daniel LaLiberte

unread,
Nov 22, 2016, 4:53:03 PM11/22/16
to Google Visualization API
Yes, sorry about that.  My bad!  I broke many if not all charts using the new loader.  I updated for the new version, but forgot a backward compatibility check.    I repaired it quickly, but the old version has a cache lifetime of 1 hour.

So this should be fixed within an hour.  I shortened the lifetime to 1 minute, but that update is not going out.  Ah, finally submitted. Maybe this will be fixed within a couple minutes.

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/50c772c3-1175-41f6-b1c2-b2ca5cb1a29e%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

Adam Youngers

unread,
Nov 22, 2016, 4:58:34 PM11/22/16
to Google Visualization API
I was loading 'current' version.  Found that you can set a specific version.  Setting to '44' worked for me...

https://developers.google.com/chart/interactive/docs/basic_load_libs#load-version-name-or-number




On Tuesday, November 22, 2016 at 1:46:38 PM UTC-8, Xerxes Dotiwalla wrote:

Adam Youngers

unread,
Nov 22, 2016, 5:10:56 PM11/22/16
to Google Visualization API
Thanks for the quick turn around Daniel.



On Tuesday, November 22, 2016 at 1:53:03 PM UTC-8, Daniel LaLiberte wrote:
Yes, sorry about that.  My bad!  I broke many if not all charts using the new loader.  I updated for the new version, but forgot a backward compatibility check.    I repaired it quickly, but the old version has a cache lifetime of 1 hour.

So this should be fixed within an hour.  I shortened the lifetime to 1 minute, but that update is not going out.  Ah, finally submitted. Maybe this will be fixed within a couple minutes.
On Tue, Nov 22, 2016 at 4:48 PM, Adam Youngers <adam.y...@gmail.com> wrote:
I'm seeing the same on my sites.  The documentation pages are broken too...





On Tuesday, November 22, 2016 at 1:46:38 PM UTC-8, Xerxes Dotiwalla wrote:
As far as I can tell, it just started today:

loader.js:149 Uncaught TypeError: d is not a function(…)e @ loader.js:149

My code is:

<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<snip>
google.charts.load('current', {'packages': ['corechart']});

Dropping to v44 seems to fix it:

google.charts.load('44', {'packages': ['corechart']});

Please advise. Thanks.

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.



--
Reply all
Reply to author
Forward
0 new messages