Possibly related to https://github.com/plotly/plotly.js/issues/895, but this specific error thrown by phantomjs 2.1.1 was introduced by plotly.js 1.50.0. For a minimal reproducible example, see https://gist.github.com/cpsievert/a6015fd914d1b4b7ac201e99a4234bd1