When I try and commit a file, I get the error below. I can commit fine using the git cli. Any ideas?
/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)
?? operator used by @commitlint/load requires a newer Node release, so while commits work from the Git CLI, the GUI client may be invoking a different (older) Node runtime. I'd check the Node version used by SearchTree/SourceTree and compare it to node -v from the command line. Updating the client or configuring it to use the same Node version as your CLI should resolve the issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.