When executing sonarqube to generate a report, an error is reported in the report
ERROR: Failed to parse file [src/fetch/axios.ts] at line 1: ',' expected.
The first line in the ts file is
import axios, { type AxiosResponse } from 'axios'
If this line of code is placed in the Vue file, no sonarqube report error will be generated.
If I split this line of code into two sentences
import axios from 'axios';
import type { AxiosResponse } from 'axios'
there will be no sonarqube report error.
So, what is the reason for the error?
Is there any other solution besides splitting into 2 lines?