node-webworker
node-webworker copied to clipboard
Worker is not a function error
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