pgriess / node-webworker

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

Doesn't work with node 0.6.x - "Error: No such module" #35

Closed diversario closed 12 years ago

diversario commented 12 years ago

Error on require('webworker')

Error: No such module
    at Object.<anonymous> (/node_modules/webworker/lib/webworker.js:35:26)

Offending line var netBinding = process.binding('net'); yields same error.

francisl commented 12 years ago

Same thing here.

Tried the fix for node-websocket-client. no change

francisl commented 12 years ago

I made a patch for it. You can check my fork https://github.com/francisl/node-webworker or the push request https://github.com/pgriess/node-webworker/pull/36

0x80 commented 12 years ago

Are you able to pass the tests that come with the lib? For example test-simple?

I can't get any of them to work with node 0.6.7 on osx

francisl commented 12 years ago

No, it doesn't works.

0x80 commented 12 years ago

Are you successfully using the webworker module anyway? If so, with what version of node?

francisl commented 12 years ago

My fix only remove the dependencies error to start the application (0.6.1). But the webworkers does not work. The problem seems to be deeper in how the threads are handled.

vip32 commented 12 years ago

also occurs in 0.6.11 not work with node 0.6.7 (No such module)

0x80 commented 12 years ago

I get the impression the node webworker library is not actively developed anymore. I found a different way of solving my problem so luckily I don't need it anymore. Abandon ship.

vip32 commented 12 years ago

I switched to 'cluster', part of the node lib. Works great

danielrhodeswarp commented 12 years ago

I also have this problem. I installed with npm. Both require('webworker') and require('../lib/webworker') give the "no such module" error.

diversario commented 12 years ago

I don't think it's even needed anymore, I just use child processes and/or cluster.