TypeError: undefined is not an object (evaluating 'phantom.args.length')
Opened this issue · 4 comments
PhantomJS is installed and on the path, I ran "npm install phantom" and "npm install nodepdf" and everything seems to have gone fine. Still, running your samples results in
TypeError: undefined is not an object (evaluating 'phantom.args.length')
Being printed to stdout.
Node v0.12.0
Windows 7 x64
What version of phantomjs?
2.0.0
It seems that phantom.args is officially deprecated.
Also, simply replacing it with system.args doesn't work as the options JSON that's passed as a parameter when calling PhantomJS gets all of it's quotes removed. THAT seems to be a bug of system.args though.
any movement on this? I could really use this as I am attempting to integrate NodePDF into a Meteor Project
I am also having this error: TypeError: undefined is not an object (evaluating 'phantom.args.length')
Using phantom 2.0
On Ubuntu 14.04 LTS