TypeError: t.emit is not a function


#1

After use Plotly.purge(graphDiv) to destroy Plotly chart instance and clear graphDiv, error message was displayed in the console:

plotly-latest.min.js:57 Uncaught (in promise) TypeError: t.emit is not a function
at plotly-latest.min.js:57
at
(anonymous) @ plotly-latest.min.js:57


#2

YIkes.

Can you share a reproducible example to help us debug?


#3

Additional note from my side, before call Plotly.purge(graphDiv), there was deleted the graphDiv.data, i.e. graphDiv.data.length == 0