node-phantom icon indicating copy to clipboard operation
node-phantom copied to clipboard

meet phantom stdout: TypeError: undefined is not an object (evaluating 'phantom.args[0]')

Open tlightsky opened this issue 10 years ago • 6 comments

node_modules/node-phantom/bridge.js:3 in global code

https://github.com/segmentio/nightmare/issues/42 https://github.com/sgentle/phantomjs-node/pull/209 this might be helpful it's kind caused by phantomjs 2.0.0 change

tlightsky avatar Feb 07 '15 14:02 tlightsky

I just ran into this issue too. @alexscheelmeyer When will you support Phantomjs 2.0?

bchr02 avatar Feb 25 '15 19:02 bchr02

+1 for a fix on this.

mhkeller avatar Feb 27 '15 17:02 mhkeller

Try changing in bridge.js the way you get the port parameter to: var system = require('system'); var args = system.args; var port=args[1];

zig999 avatar Apr 01 '15 13:04 zig999

+1

HendrikRoth avatar Jul 08 '15 19:07 HendrikRoth

+1

jangot avatar Aug 10 '15 10:08 jangot

+1 Replacing to system.args is a hack.

ilyaevseev avatar Dec 27 '15 19:12 ilyaevseev