Closed neeo closed 7 years ago
Node's native module serialport
probably needs a rebuild to work with NWJS : http://docs.nwjs.io/en/latest/For%20Users/Advanced/Use%20Native%20Node%20Modules/
If you don't need the serialport
backend, this trick might also work for you: https://github.com/colinbdclark/osc.js/issues/69
Thanks for the tips! I actually solved it using this method: https://github.com/cotejp/serial-port-binaries-for-nwjs
I hope this will be useful for someone else out there having the same problem!
Thanks!
Glad you were able to get it working, @neeo, and thanks for helping answer the question, @jean-emmanuel! I'm closing this issue because it sounds like you're all set. If you have further issues, please feel free to reopen this issue or file a new one.
I am using NWJS for my desktop application. NWJS + osc.js works great on Linux and Mac, but on Windows, I get the following error message while loading my app (just by calling require("osc")).
The file in question is located at D:\OSC_MON\node_modules\serialport\build\Release\serialport.node, but bindings.js can't locate it.
Any idea why?
Thanks!