Webpack 4 + UglifyJS Error being thrown with Plotly 1.43.1 release.
See original GitHub issueUpgraded from 1.42.5 to 1.43.1
In strict mode code, functions can only be declared at top level or immediately within another function. [./node_modules/plotly.js/dist/plotly.js:70364,0]
Looks like
var buffer = ""
function writeBuffer() {
if(buffer !== "") {
var delta = context.measureText(buffer).width
context.fillText(buffer, offsetX + xPos, offsetY + yPos)
xPos += delta
}
}
is the offending function. Reverting back to 1.42.5 was the only solution.
I believe this is just an organizational issue rather than a full scale bug.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
upgrade to webpack 4 UglifyJsPlugin error - Stack Overflow
Save this question. Show activity on this post. I tried to upgrade to webpack 4 and ended in following error in production mode:...
Read more >plotly Changelog - PyUp.io
Items in this section may be considered backwards-incompatible changes for the purposes of [Semantic Versioning](http://semver.org/) but we expect the vast ...
Read more >CHANGELOG.md · res5692-no-longer-latest-cdn · mirrors / plotly ...
where X.Y.Z is the semver of most recent plotly.js release. ... Fix root.color error for treemap and sunburst traces (regression introduced in 1.58.0) ......
Read more >Source - GitHub
Y.Z...master> where X.Y.Z is the semver of most recent plotly.js release. ... Fixed - Fix `root.color` error for `treemap` and `sunburst` traces (regression ......
Read more >Can't build react-plotly.js
I've followed the instructions for building react-plotly.js with webpack ... but I'm getting the following error whenever I build my project ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
My apologies for the late reply, I was traveling last week. I’ll take a look at it and report back.
Thank you very much for testing it!