Sonar parsing issue

Hi Team,

I got below parse issue. Please guide me how to fix it.
sonar version

  • Developer Edition
  • Version 7.9.1

npm --prefix . run sonar

ERROR: Unable to parse file: file://app/hooks/useApp.js
10:17:58 ERROR: Parse error at line 43 column 18:
10:17:58
10:17:58 33:
10:17:58 34:
10:17:58 38: const handleSubmitError = useCallback(
10:17:58 39: (errors, errorsCallback) => {
10:17:58 40: let errorMessage,
10:17:58 41: errorDetails = {};
10:17:58 42:
if (errors?.response) {
^

not able to parse ?.