Currently, I am developing an angular application that incorporates Mozilla's PDFJS library. However, during the unit testing phase of the project, it appears that PhantomJS is unable to locate certain components of the PDFJS library.
This is the specific error message being displayed:
PhantomJS 1.9.8 (Linux 0.0.0) ERROR
TypeError: 'undefined' is not a function (near '...}.bind(this), REJECTION_TI...')
at /home/[...]/bower_components/pdfjs-dist/build/pdf.js:1222
It is crucial for me to utilize PhantomJS due to my continuous integration infrastructure requirements.