Hi Thomas, I don't fully understand what is going on yet, but it appears when the loader generates script tags to load the modules of the library, which is working fine in most cases, for some reason, your production environment is confusing the security context (or something at that level) enough that a 'script' tag generated by: goog.dom.createElement(goog.dom.TagName.SCRIPT); does not appear to be an HTMLScriptElement as it should but instead ends up as a generic HTMLUnknonwElement.
Why this is happening is a complete mystery to me, but perhaps if other people are seeing this too, we might begin to see a pattern. I'll also ask some folks in Google who might be able to help. On Sun, Sep 8, 2019 at 6:35 PM SquarSwap <[email protected]> wrote: > I have an interesting problem with loading google charts. I can load the > javascript without any issues when running my website on localhost, but > when running on my production website the javascript fails to load. > > The error message I get is from the call *google.charts.load('current', > {'packages':['corechart']});* > > This is the error: > > *uncaught exception: AssertionError: Failure: Argument is not a > HTMLScriptElement (or a non-Element, non-Location mock); got: > HTMLUnknownElement* > > You can see the error at https://squarswap.com/thumbsUp. I thought > originally this may be an https issue, but I get the same error on http > also. > > Has anybody seen this error before? I'm not sure how to debug, I mostly > work on backend so my js skills are not that great. > > Thanks, > Thomas > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/google-visualization-api/842aecbf-1c2f-4aaf-9445-5c71d1697426%40googlegroups.com > <https://groups.google.com/d/msgid/google-visualization-api/842aecbf-1c2f-4aaf-9445-5c71d1697426%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> [email protected] <[email protected]> Cambridge MA -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJPYF-er1bNZZJfSyXr9EqQbcWjxyjfwEAtP8FcB%3DFm8cg%40mail.gmail.com.
