Open apoorvcn47 opened 4 years ago
Please rclnodejs.node
is included.
Unfortunately that did not work. Following is the error I am getting
/home/aw_rdex/Desktop/node_modules/bindings/bindings.js:211 throw new Error( ^
Error: Could not find module root given file: "/home/aw_rdex/Desktop/node_modules/rclnodejs/lib/clock.js". Do you have a package.json
file?
at Function.getRoot (/home/aw_rdex/Desktop/node_modules/bindings/bindings.js:211:13)
at bindings (/home/aw_rdex/Desktop/node_modules/bindings/bindings.js:82:32)
at Object.
I am including clock.js specifically. Following is my compilation command
nexe rosbridge2.js -r "./lib/.js" -r "./node_modules/" -r "./index.js" -r "./package.json" -r "./node_modules/rclnodejs/build/Release/obj.target/rclnodejs.node" -r "./node_modules/bindings/.js" -r "./node_modules/rclnodejs/lib/*.js" -r "./node_modules/rclnodejs/index.js" -r "./node_modules/rclnodejs/package.json" -r "./node_modules/rclnodejs/lib/clock.js"
The log shows the rclnodejs.node
is not found, please check the source code of clock.js
const rclnodejs = require('bindings')('rclnodejs');
yes i understand that but based on my compilation command, it should be included, correct?
Sorry if I am being difficult, dont have much experience with javascript
Is compilation working for you?
When I try to convert rosbridge.js into a binary with nexe and put it in another directory, it cannot find binding and rclnodejs modules. While compiling, i do provide linking with node_modules, lib, package.json and index.js. Is there anything I am doing wrong? Following is the command I am using for compilation
nexe rosbridge.js -r "../lib/.js" -r "../node_modules/" -r "../index.js" -r "../package.json"