git-rev-sync-js icon indicating copy to clipboard operation
git-rev-sync-js copied to clipboard

Error when using git.short and git.branch

Open whaaaley opened this issue 2 years ago • 5 comments

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.

whaaaley avatar Dec 15 '22 18:12 whaaaley

I have the same problem please help us thanks a lot

wkl007 avatar Dec 21 '22 03:12 wkl007

@wkl007 the project "async-git" seems to do the same job without errors

whaaaley avatar Dec 21 '22 20:12 whaaaley

@whaaaley useful, thank you very much, i love you 😘

wkl007 avatar Dec 22 '22 01:12 wkl007

same issue here, using ESM as well

NikitaVr avatar Sep 29 '23 01:09 NikitaVr

i got the error too when simply invoking git.branch()... however when i passed in a path git.branch('./') it worked fine.

Juicetan avatar Mar 09 '24 20:03 Juicetan