NWJS doesn't work properly with GRPC for Node.js
See original GitHub issueNWJS doesn’t work with GRPC for Node.js, Run it with Node.JS directly just act as normal.
- State which version are you using Version 0.15.4
- State which OS version are you running with OS X El Captian
- Provide a reproducible case if possible Install GRPC node.js module in the project folder. $ npm intall grpc and run the application that using GPRC via nwjs.
- Error message
/Users/David/Downloads/app.nw/node_modules/grpc/src/node/src/client.js:334
var call = new grpc.Call(channel, method, deadline, host,
^TypeError: Call's fifth argument must be another call, if provided
at TypeError (native)
at getCall (/Users/David/Downloads/app.nw/node_modules/grpc/src/node/src/client.js:334:14)
at Client.makeUnaryRequest [as sayHello](/Users/David/Downloads/app.nw/node_modules/grpc/src/node/src/client.js:372:16)
at chrome-extension://jdgkbifmkkkcgglljmlojibojoafmlhi/test.js:13:8
Here is the source code: Archive.zip
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
node.js - NW.JS failed to load grpc binary module
P.S. It works prefectly fine if I run node server.js command in cmd and then run the nwjs. I am developing on windows...
Read more >[Solved]-NW.JS failed to load grpc binary module-node.js
My Approach would be a bit different. First of all you cannot have your node.js application and nwjs in the same folder structure...
Read more >nwjs/nw.js
Hey, wondering if someone can help me out. We are using the NWJS Desktop Capture api and we want to extract the exeName...
Read more >Basics tutorial | Node
Use the Node.js gRPC API to write a simple client and server for ... to generate the code needed to work with protocol...
Read more >A journey from Node to GoLang
If your existing technology is not fulfilling all your needs and you are ... were written in NodeJS for a cloud solution and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
GRPC is a native module written in C/C++. Did your rebuild it with
node-pre-gyp
? If not, please install latestnw-gyp
with NPM and rebuild with following command:Or you can build
grpc
at the time of installing it with NPM by using following command:@black Sorry I have no computer has Windows installed and no experiences with it. Just follow the ghostoy’s instruction and tell what happened, maybe someone could help. 😉
BTW, as mentioned that gRPC is a native module that needs to be recompiled on each platform and each version upgrade. So NWJS --> WebSocket to gRPC gateway (very easy to be implemented by Go) --> gRPC backend may be a better solution.