loomnetwork / loom-js-samples

Sample code demonstrating usage of https://github.com/loomnetwork/loom-js
BSD 3-Clause "New" or "Revised" License
10 stars 7 forks source link

Compilation of µWebSockets has failed #1

Open sw1sh opened 6 years ago

sw1sh commented 6 years ago

The error appears at yarn start step on macOS. I've fixed it for now with changing line in node_modules/qaap-uws/uws.js: from this: return require(`./uws_${process.platform}_${process.versions.modules}`); to this: return require(`uws/uws_${process.platform}_${process.versions.modules}.node`);

enlight commented 6 years ago

Seems to work fine on my Mac, can you provide your MacOS & NodeJS versions?

mattkanwisher commented 6 years ago

Seems to be an issue with Node 10 only Node 9 works. Need to dig in further

Oxyaction commented 6 years ago

OSX High Sierra 10.13.3 node v10.1.0 didn't work with both npm and yarn (qaap-uws stucks in compilation) than switched to node v9.3.0 tried with yarn - still doesn't compile, with npm compiled fine

mattkanwisher commented 6 years ago

I recommend node 8

myyan commented 6 years ago
aTravelingN3rd commented 5 years ago

I think I have the same error:

{ kind: 'error', url: 'ws://127.0.0.1:46657/websocket', error: { Error: connect ECONNREFUSED 127.0.0.1:46657 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1082:14) errno: 'ECONNREFUSED', code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 46657 } } { kind: 'error', url: 'ws://127.0.0.1:9999/queryws', error: { Error: connect ECONNREFUSED 127.0.0.1:9999 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1082:14) errno: 'ECONNREFUSED', code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 9999 } }

And it goes on forever

enlight commented 5 years ago

@aTravelingN3rd no your errors are unrelated, try using ws://127.0.0.1:46658/websocket and ws://127.0.0.1:46658/queryws instead, and if you still get these errors it must mean your loom node isn't actually running.