Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Cannot commit files, @commitlint error

Matt Harris
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 3, 2023

When I try and commit a file, I get the error below. I can commit fine using the git cli. Any ideas?

Screenshot 2023-08-03 at 14.33.34.png

/node_modules/@commitlint/load/node_modules/cosmiconfig/dist/index.js:79

  const overrideOptions = metaConfig.config ?? {};

                                             ^
SyntaxError: Unexpected token ?

    at Module._compile (internal/modules/cjs/loader.js:872:18)

    at Object.Module._extensions..js (internal/modules/cjs/loader.js:947:10)

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events