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

Uncaught Error: Module did not self-register. #11

Closed
stevenvachon opened this issue Aug 11, 2015 · 6 comments
Closed

Uncaught Error: Module did not self-register. #11

stevenvachon opened this issue Aug 11, 2015 · 6 comments

Comments

@stevenvachon
Copy link

Uncaught Error: Module did not self-register.
      at Error (native)
      at Object.<anonymous> (C:\projects\winattr\lib\binding\index.js:2:13)
      at Object.change (C:\projects\winattr\lib\whichLib.js:25:20)
      at switchLib (C:\projects\winattr\test\util.js:198:12)
      at C:\projects\winattr\test\util.js:53:3
      at FSReqWrap.oncomplete (fs.js:82:15)

https://ci.appveyor.com/project/stevenvachon/winattr/build/job/93nr8xhqxqvamlw7

@stevenvachon
Copy link
Author

If AppVeyor is to blame, please tell them in the discussion: http://help.appveyor.com/discussions/problems/2667-iojs-not-loading-binding

@xxoo
Copy link
Owner

xxoo commented Aug 11, 2015

sorry i'm not sure about what exactly course the error.
what i know is, after calling

require('fswin');

the call stack should goto fswin/index.js
but i don't see it in the log

@stevenvachon
Copy link
Author

My error points to line 2 of one of my files. That line looks like this:

var fswin = require("fswin");

Can you try testing with AppVeyor? It'd probably be a good idea as it's the free Windows-based CI that the Node/IO community uses.

@stevenvachon
Copy link
Author

This could be a exposing an fswin issue with other Windows-based environments.

@JCMais
Copy link

JCMais commented Aug 14, 2015

You should not use the node executable when building with io.js, if you do, the native module needs to be built with the win_delay_load_hook (https://github.com/TooTallNate/node-gyp/blob/master/addon.gypi#L4) set to true. See nodejs/node#751

Here is one way to use appveyor without that error: https://github.com/nodejs/nan/blob/master/appveyor.yml#L32 You check the version first, and then you call the correct binary afterwards.

@stevenvachon
Copy link
Author

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

3 participants