node-webworker icon indicating copy to clipboard operation
node-webworker copied to clipboard

Worker is not a function error

Open fernandezpablo85 opened this issue 14 years ago • 0 comments

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

fernandezpablo85 avatar Jan 11 '12 17:01 fernandezpablo85