git-rev-sync-js
git-rev-sync-js copied to clipboard
Error when using git.short and git.branch
TypeError: Cannot read properties of undefined (reading 'filename')
Node version v19.0.0
This could be an error relating to module system. I'm using ESM imports.
I have the same problem please help us thanks a lot
@wkl007 the project "async-git" seems to do the same job without errors
@whaaaley useful, thank you very much, i love you 😘
same issue here, using ESM as well
i got the error too when simply invoking git.branch()
... however when i passed in a path git.branch('./')
it worked fine.