When using plotly.js with Bluebird (global scope, without Bluebird.noConflict()), loading plotly.js seems to overrides the Promise. Bluebird 3.4.6 Plotly.js 1.17.3 Chrome 53.0.2785.143 m (64-bit) Try this: 1. Load Bluebird 2. Load Plotly.js 3. Promise.all([]).spread() Expected Results: 3 returns a Promise Actual Result: Promise.all(..).spread(..) is not a function
Activity
zllovesuki commentedon Oct 13, 2016
maybe related to #955
etpinard commentedon Oct 13, 2016
Yep, same problem as #955
Importing plotly.js before Bluebird should solve the issue.
[-]plotly.min.js seems to override Promise[/-][+]plotly.min.js overrides Promise[/+]etpinard commentedon Sep 25, 2018
#2994 will add a handler for
window.PlotlyConfig.MathJaxConfigas a way to configure MathJax "on load".I'm thinking we could similarly add a handler e.g
window.PlotlyConfig.noPromisePolyfillto skip over this lineplotly.js/src/core.js
Line 15 in a070a8d
on load.
archmoj commentedon Jan 14, 2021
This might be fixed by #5358.
alexcjohnson commentedon Jan 14, 2021
This one we should explicitly test (manually, once, I don't see it as requiring a CI test) before closing.
archmoj commentedon Jan 19, 2021
Tested. It is fixed on master.