Derby.js TypeError: Object function (files)


Everytime I try to run the basic server.js that comes with a new project I ge the following errors:

node server.js

Master pid 5078
   info  - started
5079 listening. Go to: http://localhost:3000/

  callback(err, value + ';' + browserify.bundle(options));
TypeError: Object function (files) {
    return new Browserify(files);
} has no method 'bundle'
    at racer.js (../node_modules/derby/node_modules/racer/lib/racer.server.js:115:46)
    at module.exports (../node_modules/derby/node_modules/racer/node_modules/
    at fs.readFile (fs.js:176:14)
    at Object.oncomplete (fs.js:297:15)

I have tried to re-install node.js and derby with and without the -g option and always get the same problem. Am I doing something wrong?

EDIT: Using node.js 0.8.20 and derby.js 0.3.14 on OSX 10.8.2

Problem courtesy of: just_user


I have run into the same problem today. I don't think you are doing anything wrong. The maintainers of browserify have released a new version which I think has changed its API.

I'm new to derby too, and not that proficient at Javascript either. I did manage to work around this problem at least for now by hacking in to {project_home}/node_modules/derby/node_modules/racer/package.json and changing the version for browserify back to something that I had working.

"browserify": "1.17.2",

Not a long term solution though.

Solution courtesy of: user1069445


There is currently no discussion for this recipe.

This recipe can be found in it's original form on Stack Over Flow.