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

Loading C++ addon Node 0.12.2 Modules #83

Closed
sbowler opened this issue Oct 6, 2015 · 2 comments
Closed

Loading C++ addon Node 0.12.2 Modules #83

sbowler opened this issue Oct 6, 2015 · 2 comments

Comments

@sbowler
Copy link

sbowler commented Oct 6, 2015

Hello,

It looks like we are having some problems trying to load a C++ addon built with Node 0.12.2. We have a module we are trying to proxyquire and it requires a C++ addon binary file for node. We get the error "Module did not self-register." on line 243 of proxyquire.js.

It looks like your code is not compatible with this version of Node based on sass/node-sass#653 which shows the same error and appears to be related to the version of Node. Would you be able to update your code to handle new versions of Node?

@thlorenz
Copy link
Owner

thlorenz commented Oct 6, 2015

The error you're seeing is related to the C++ addon module being incompatible with the version of node you're using.
Try the .noCallThru option and see if that works.
But since proxyquire doesn't do anything C++ related your problem couldn't be solved here afaik.

@sbowler
Copy link
Author

sbowler commented Oct 6, 2015

I'm quite certain the module is built with the same version of node. It looks like the .noCallThru option is the way to go anyways. As you can imagine we aren't that concerned about unit testing the C++ addons. Thanks for the help.

@sbowler sbowler closed this as completed Oct 6, 2015
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

2 participants