node-phantom
node-phantom copied to clipboard
meet phantom stdout: TypeError: undefined is not an object (evaluating 'phantom.args[0]')
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
I just ran into this issue too. @alexscheelmeyer When will you support Phantomjs 2.0?
+1 for a fix on this.
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];
+1
+1
+1 Replacing to system.args is a hack.