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

Du[n] is not a function #126

Closed
1 task
mahmoudkandeel opened this issue Mar 3, 2023 · 3 comments · Fixed by #141
Closed
1 task

Du[n] is not a function #126

mahmoudkandeel opened this issue Mar 3, 2023 · 3 comments · Fixed by #141
Labels
bug Something isn't working

Comments

@mahmoudkandeel
Copy link

Bug description

└ ✖ Du[n] is not a function

at he (file:///C:/Users/Mahmoud/AppData/Roaming/npm/node_modules/aicommits/dist/cli.mjs:61:2965)
at async file:///C:/Users/Mahmoud/AppData/Roaming/npm/node_modules/aicommits/dist/cli.mjs:64:15

aicommits v1.3.0

aicommits version

1.3.0

Environment

System:
    OS: Windows 10 10.0.22621
    CPU: (16) x64 AMD Ryzen 7 4800H with Radeon Graphics
    Memory: 26.82 GB / 39.37 GB
  Binaries:
    Node: 14.21.3 - C:\Program Files\nodejs\node.EXE
    npm: 6.14.18 - C:\Program Files\nodejs\npm.CMD

Can you contribute a fix?

  • I’m interested in opening a pull request for this issue.
@mahmoudkandeel mahmoudkandeel added bug Something isn't working pending triage labels Mar 3, 2023
@privatenumber
Copy link
Collaborator

Maps to this line:
https://github.com/Nutlope/aicommits/blob/5fe127d377eeeec8ba08dd4a0052ec5e5272fe14/src/utils/config.ts#LL54C18-L54C31

Will fix on our end but I think you have an invalid config property in ~/.aicommits.

@mahmoudkandeel
Copy link
Author

@privatenumber thanks for response, yes it was an issue for config file, so i removed it and rerun aicommits config set OPENAI_KEY=<your token> and it works as expected

@privatenumber
Copy link
Collaborator

Glad that fixed it.
Will keep this open until the error is handled.

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

Successfully merging a pull request may close this issue.

2 participants