Skip to content

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

Closed
@morgangraphics

Description

@morgangraphics

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions