SPFx project with React

I am new to SonarCloud
can anyone help me on
How to Build a SpFx project written in React

getting the below error

Description : Run scanner and upload the results to the SonarCloud server.
Version : 1.11.0
Author : sonarsource
Help : Version: 1.11.0. This task is not needed for Maven and Gradle projects since the scanner should be run as part of the build.

More Information

/usr/bin/dotnet /home/vsts/work/_tasks/SonarCloudPrepare_14d9cde6-c1da-4d55-aa01-2965cd301255/1.11.0/dotnet-sonar-scanner-msbuild/SonarScanner.MSBuild.dll end
SonarScanner for MSBuild 4.9
Using the .NET Core version of the Scanner for MSBuild
Post-processing started.
##[error]The SonarQube MSBuild integration failed: SonarQube was unable to collect the required information about your projects.
Possible causes:

  1. The project has not been built - the project must be built in between the begin and end steps
  2. An unsupported version of MSBuild has been used to build the project. Currently MSBuild 14.0.25420.1 and higher are supported.
  3. The begin, build and end steps have not all been launched from the same folder
  4. None of the analyzed projects have a valid ProjectGuid and you have not used a solution (.sln)
    The SonarQube MSBuild integration failed: SonarQube was unable to collect the required information about your projects.
    Possible causes:
  5. The project has not been built - the project must be built in between the begin and end steps
  6. An unsupported version of MSBuild has been used to build the project. Currently MSBuild 14.0.25420.1 and higher are supported.
  7. The begin, build and end steps have not all been launched from the same folder
  8. None of the analyzed projects have a valid ProjectGuid and you have not used a solution (.sln)
    Generation of the sonar-properties file failed. Unable to complete SonarQube analysis.
    ##[error]07:38:03.322 Post-processing failed. Exit code: 1
    07:38:03.322 Post-processing failed. Exit code: 1
    ##[error]The process ‘/usr/bin/dotnet’ failed with exit code 1
    Finishing: SonarCloudAnalyze

Hi @Soma and welcome to the community,

Depending on the build tool you are using, i think you would be more interested by choosing either “Maven/Gradle” or “Use Standalone scanner” in the configuration of the Prepare analysis on SonarCloud task

Can you have a look at that ?

Thanks.