1,[error]:a[b].target.className.indexOf is not a function
项目中用到plotly插件,运行项目的时候报了一堆错误:
原因是浏览器运行了Google翻译扩展程序,禁用google的自动翻译可以解决问题;
链接:https://www.cnblogs.com/lilingyu-l/p/6473950.html?utm_source=itdadao&utm_medium=referral
2,plotly.js和extendTraces
这个库搭配使用,报错:Uncaught Error: indices must be valid indices for gd.data
。
plotly.js最好不要和extendTraces
这个库同时使用,重新绘图可以使用Plotly.newPlot();可以避免上述错误
链接: https://github.com/plotly/react-plotly.js/issues/85