i've experienced the same error when clicking on my d3 charts.

bubble_compiled.js is part of the google translate chrome extension. disabling/removing this extension will make the error go away, but this error should not affect your site at all.

this error is occurring because the extension has a mousedown listener which tries to check if the target element has the class "jfk-bubble-closebtn".

relevant code in the extension (full source here):

p(window, "mousedown", function(a) {
    var b = ub(document, "gtx-trans");
    b && (ec(b, ? a.preventdefault() : (tc(b),
    -1 !="jfk-bubble-closebtn") && a.preventdefault()

since you are using highcharts, you might be trying to click on an svg element. the type of an svg class name is svganimatedstring, which unlike string does not have an indexof method. so when the extension tries to call it, it fails because it does not exist.

see also: chrome and a typeerror due to svganimatedstring

Related Query

More Query from same tag