I am trying to use RequireJS to load the plotly and d3 libraries in my js code. I have tried this:
require.config({
paths: {
d3: \'/static/scripts/plo
I had the same problem, it's a defect/oversight in Plotly. The error occurs on the last line of the library itself (plotly.js
/ plotly.min.js
):
...:414}]},{},[305])(305)});Plotly.version='1.0.0';
I suspect this is a problem with the module pattern being used and the library's own code to detect AMD loaders.
I was able to workaround it removing the last line, which I'd guess doesn't cause any break in functionality.
...:414}]},{},[305])(305)});