FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Module fails to load · Issue #299 · nodegit/nodegit · GitHub

Repository navigation

Module fails to load #299

Description

When I try to import the library I get the error Cannot find module '../build/Debug/nodegit'.
I looked at the source and saw that it only tries to do this when loading the release version failed. I logged the error that is caused by loading the release version, and got Module did not self-register..

Do you know what this means and how I can fix it?

Activity

johnhaley81 commented on Nov 26, 2014

Collaborator

Are you trying to load this in node-webkit?

maxkorp commented on Nov 26, 2014

Collaborator

It probably didn't build correctly. How did you grab the module, via NPM? if so, try cding into the directory and running an NPM install

lavelle commented on Nov 26, 2014

Author

@johnhaley81 yeah, are there known issues with that?

maxkorp commented on Nov 26, 2014

Collaborator

Ha, yes (thats how we ended up involved in nodegit). You have to rebuild with nw-gyp, currently nodegit builds with node-gyp

lavelle commented on Nov 26, 2014

Author

oh yeah I think I remember having to use that to get another lib with a native extension to work before. Is there a way to do it automatically as part of the install process? My library which depends on nodegit is consumed by a regular Node CLI and node-webkit GUI, so I'd like to get a system which works for both.

maxkorp commented on Nov 26, 2014

Collaborator

We actually have an issue for that, I've found a few strategies for detecting node-webkit, but one needs to be implemented and used to have it gyp with the correct tool.

maxkorp commented on Nov 26, 2014

Collaborator

lavelle commented on Nov 26, 2014

Author

Ah okay well if there's a fix coming soon then I might just keep testing it with the CLI and integrate with the GUI once that works.

johnhaley81 commented on Nov 26, 2014

Collaborator

Yeah we're working on a fix now since that's pretty big and important :)

Closing this since we already have an issue tracking this. If you want to discuss this further, feel free to over at #212.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL