Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bindings issue #7

Open
funguru opened this issue Aug 12, 2015 · 0 comments
Open

bindings issue #7

funguru opened this issue Aug 12, 2015 · 0 comments

Comments

@funguru
Copy link

funguru commented Aug 12, 2015

Hello,

I faced some issues, actually node compiles correctly, but at the run time: it returns me :
if (debugging ) return process.binding(name.replace(/.node$/,''));
^
Error: No such module: my_addon
at Error (native)
at resolveBinding (NAD/my-addon/node_modules/nad-bindings/index.js:20:34)
at Object. (NAD/my-addon/my-addon.js:3:38)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3

by commenting the line:
if (debugging ) return process.binding(name.replace(/.node$/,''));

I have two different behaviors:
From terminal : $TheCompiledNode my_addon.js
node version v0.12.2

JS: Hi from JS my_addon
C++: my_addon says hello

From Xcode:
/NAD/my-addon/node_modules/bindings/bindings.js:159
throw new Error('Could not find module root given file: "' + file
^
Error: Could not find module root given file: "[object Object]". Do you have a package.json file?
at Function.getRoot (/NAD/my-addon/node_modules/bindings/bindings.js:159:13)
at resolveBinding (/NAD/my-addon/node_modules/nad-bindings/index.js:21:59)
at Object. (/NAD/my-addon/my-addon.js:3:38)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3

May be I missed to configure nad correctely, if you could help.

Many thanks in advance,

PS: I am using the nad.0.1.0 / node :v0.12.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant