It appears plotly.js 1.50.0 introduced the following error in phantomjs 2.1.1:
$ phantomjs --version
2.1.1
$ phantomjs plot.js
This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.
https://cdn.plot.ly/plotly-1.50.0.min.js:7
TypeError: undefined is not a constructor (evaluating 'Object.setPrototypeOf(e.prototype,Uint8Array.prototype)')
https://cdn.plot.ly/plotly-1.50.0.min.js:7
ReferenceError: Can't find variable: Plotly