NodePDF icon indicating copy to clipboard operation
NodePDF copied to clipboard

TypeError: undefined is not an object (evaluating 'phantom.args.length')

Open coreyog opened this issue 10 years ago • 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

coreyog avatar Feb 23 '15 20:02 coreyog

What version of phantomjs?

TJkrusinski avatar Feb 24 '15 17:02 TJkrusinski

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.

coreyog avatar Feb 24 '15 17:02 coreyog

any movement on this? I could really use this as I am attempting to integrate NodePDF into a Meteor Project

jgdovin avatar Apr 07 '15 17:04 jgdovin

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

hawkerboy7 avatar Sep 07 '15 14:09 hawkerboy7