pgriess / node-webworker

A WebWorkers implementation for NodeJS
BSD 3-Clause "New" or "Revised" License
646 stars 84 forks source link

Worker is not a function error #38

Open fernandezpablo85 opened 12 years ago

fernandezpablo85 commented 12 years ago

Hello,

Just following the README example I got:

TypeError: object is not a function

The fix I found for this is:

var Worker = requre('webworker').Worker

Not sure why this is happening, the ./lib file correctly exports Worker as it's module.exports.

Thanks