Crosstalk issue with plotly upgrade


#1

Hello,

I have an application where plotly has been upgraded from version 4.5.6 to 4.7.0. The application has two plots that are updated reactively based on a set of selectInputs. The application works normally with plotly 4.5.6 but with plotly 4.7.0, I get the following error:

ReferenceError: crosstalk is not defined tmlwidgets.js%20line%20236%20%3E%20eval:1:24
http://127.0.0.1:6505/htmlwidgets-0.9/htmlwidgets.js%20line%20236%20>%20eval:1:24
evalAndRun/< http://127.0.0.1:6505/htmlwidgets-0.9/htmlwidgets.js:240:9
forEach self-hosted:269:13
forEach http://127.0.0.1:6505/htmlwidgets-0.9/htmlwidgets.js:55:7
evalAndRun http://127.0.0.1:6505/htmlwidgets-0.9/htmlwidgets.js:230:7
window.HTMLWidgets.widget/shinyBinding.renderValue http://127.0.0.1:6505/htmlwidgets-0.9/htmlwidgets.js:517:9
this.onValueChange output_binding.js:16:4
delegateMethod/delegator[methodName] http://127.0.0.1:6505/htmlwidgets-0.9/htmlwidgets.js:112:16
this.onValueChange output_binding_adapter.js:21:4
this.receiveOutput shinyapp.js:350:6
shinyapp.js:562:8
this._sendMessagesToHandlers shinyapp.js:547:8
this.dispatchMessage shinyapp.js:533:4
this.createSocket/c.onmessage shinyapp.js:112:6

Any pieces of advice would be highly appreciated…


#2

Did you raise it as an issue on plotly github?

BTW latest v is 4.7.1. You could try updating


#3

Hello,

No, because I cannot replicate the issue in a small code snippet or application. I was able to find that crosstalk is not initialized for one of the plots used. Yes, thanks for the advice, the latest version on my development machine is 4.7.1 and the issue persists.


#4

Final suggestion. Contact Carson directly explaining issue. I have always found him very helpful