opencommit icon indicating copy to clipboard operation
opencommit copied to clipboard

✖ TypeError: Cannot read properties of undefined (reading 'value')

Open suchcodemuchwow opened this issue 1 year ago • 9 comments

I started to get this error since yesterday not sure why it is ? The changes are committed successfully but operation fails:

Screenshot 2023-03-29 at 20 33 52

suchcodemuchwow avatar Mar 29 '23 18:03 suchcodemuchwow

should be fixed, update pls oc i -g opencommit

di-sukharev avatar Mar 30 '23 07:03 di-sukharev

Same here. Latest version.

AlexisSerneels avatar Mar 30 '23 08:03 AlexisSerneels

Same

eskruolis avatar Mar 30 '23 08:03 eskruolis

what do you see when run git remote?

di-sukharev avatar Mar 30 '23 11:03 di-sukharev

try to update pls npm i -h opencommit@latest

di-sukharev avatar Apr 01 '23 05:04 di-sukharev

A similar error here -> └ ✖ TypeError: Cannot read properties of undefined (reading '0') It's given when the diff contains SVG files added. Is it related?

mgatorr avatar Apr 11 '23 09:04 mgatorr

Stale issue message

github-actions[bot] avatar May 21 '23 21:05 github-actions[bot]

@MarioGT90 I had a similar issue like yours. Could you please share how you resolved it?

kejianlin avatar Aug 30 '23 01:08 kejianlin

@MarioGT90 OCO_OPENAI_BASE_PATH=https://api.aikey.one/v1, Add /v1 after the API. Source code:

... createChatCompletion: (createChatCompletionRequest, options = {}) => __awaiter(this, void 0, void 0, function* () { const localVarPath = /chat/completions; const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); }), ...

kejianlin avatar Aug 30 '23 03:08 kejianlin