question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Webpack 4 + UglifyJS Error being thrown with Plotly 1.43.1 release.

See original GitHub issue

Upgraded 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:closed
  • Created 5 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
morgangraphicscommented, Jan 7, 2019

My apologies for the late reply, I was traveling last week. I’ll take a look at it and report back.

0reactions
etpinardcommented, Jan 11, 2019

[…] has been addressed in code listed above

Thank you very much for testing it!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found