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

Building nodegit fails with missing functions #1024

Open
matejdro opened this issue Jan 10, 2023 · 0 comments
Open

Building nodegit fails with missing functions #1024

matejdro opened this issue Jan 10, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@matejdro
Copy link

It seems like building nodegit package fails to include several function definitions, resulting in built scripts with this module failing.

Steps to reproduce:

  1. Download and extract project.zip
  2. npm install
  3. Run the module normally (node index.js), it should execute normally and print the message of the commit
  4. Compile the project via ncc (npx ncc build)
  5. Run compiled script (node dist/index.js)

BUG: Script will crash with TypeError: repo.getBranchCommit is not a function

As a workaround, you can uncomment three require methods inside provided index.js and perform steps 4-5 again. Build should work this time.

@styfle styfle added the bug Something isn't working label Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants