utp not working in dat-desktop #238
Comments
OK getting super weird behavior with require('utp-native') To reproduce:
to this:
I first thought it was because Also, @joehand sent me a working build from his laptop, but it failed for me. We logged out the value of His machine (utp worked):
My machine:
|
I think I found the issue. Apparently when you child_process.fork in electron, runtime in the forked process is node, not electron. Then you get this error requiring utp-native (inserting a console.log in discovery-swarms try/catch surrounding that require):
Working on a fix now |
I released utp-native with bundled prebuilds for all platform (excluding windows) so this should be fixed by that if you reinstall. @juliangruber is the issue you describe gonna affect the other native modules also? If so I can do a release of sodium-encryption|signatures with sodium-native since that ships with bundled prebuilds as well |
this seems to work for me now. please close when you ACK |
(re install node_modules) |
when testing with @joehand and @yoshuawuyts we found out that utp (for some reason we don't yet know) is not getting used at all in dat-desktop@master. looking into it now
The text was updated successfully, but these errors were encountered: