Making Zombie WORK

126 views
Skip to first unread message

Imdad Ahmed

unread,
Sep 8, 2013, 12:50:51 AM9/8/13
to zomb...@googlegroups.com
I don't know what combination of:
- node version
- npm version
- zombie version

.. will make a simple app, like the following, work:

var b = require("zombie")()
b.visit(firstPage).then(function(){})


.. I keep getting the error:
    this.on("error", function(error) {
         ^
TypeError: Object #<Object> has no method 'on'

.. or some error related to Contextify.

I have npm 1.1.37

I have tried node 0.10.3 with zombie 1.4.1
I have tried node 0.9.12 with zombie 1.4.1
I have tried node 0.8.23 with zombie 1.4.1

I have tried node 0.10.3 with zombie 1.3.1
I have tried node 0.9.12 with zombie 1.3.1
I have tried node 0.8.23 with zombie 1.3.1

etc etc

Please help!! :)

Rowen Pimentel

unread,
Dec 8, 2013, 5:16:04 AM12/8/13
to zomb...@googlegroups.com
Try to create an instance of zombie first

var zombie = require('zombie');
var b = new zombie();
var firstPage = "http://yoursite.com";

then do your

b.visit(firstPage).then(function(){});
Reply all
Reply to author
Forward
0 new messages