Vue Component: Failed to Analyze File

One of our Vue based projects has multiple files that are unable to be analyzed. We only receive this error during our pipeline builds, IDE integration seems to work fine. This may be a duplicate of this ticket which was recently cancelled. Unfortunately, this is a private repo so I’m unable to share the contents of one of these components.

  • ALM used: Azure DevOps
  • CI system used Azure DevOps
  • Scanner command used when applicable:
    • Yml Pipeline Command
      • task: SonarCloudPrepare@3

                enabled: true
        
                inputs:
        
                  SonarQube: '\[redacted\]'
        
                  organization: '\[redacted\]'
        
                  scannerMode: 'cli'
        
                  configMode: 'manual'
        
                  cliProjectKey: '\[redacted\]'
        
                  cliProjectName: '\[redacted\]'
        
                  cliSources: '.'
        
                  extraProperties: |
        
                    sonar.verbose=true
        
                    sonar.qualitygate.wait=true
        
                    sonar.qualitygate.timeout=300
        
  • Languages of the repository: Vue/Javascript
  • Error observed:
ERROR Failed to analyze file [apps/shared/components/AccountQuestions.vue]: Cannot set property index of Error which has only a getter

Hello @huh,

thanks for reporting this. Unfortunately we were unable to reproduce the error in that ticket. Could you please share the full debug logs? Any additional sonar properties aside of the pipeline extraProperties (using a sonar.properties file for example?

Any special tsconfig.json options?

Thanks!
Victor

Hi @huh,

no need for more details. We can reproduce now. I’m reopening the ticket

1 Like