Why an error occurs when using phantomjs?
It is because PhantomJS is not support ES6 Promise
See the issue in Github here. if you do debugging you will see this error for that page
ReferenceError: Can't find variable: Promise
phantomjs://platform/bootstrap.js:87 2
ReferenceError: Can't find variable: $
Because PhantomJS abandoned there are no easy fix.