AbortController not defined in prepare task

We are trying enable version 6 of the tasks in our Azure DevOps (On Prem) and got this odd looking error. Any ideas what could be wrong ?

Starting: Msbuild - Prep Code and Vulnerability analysis

Task : Prepare Analysis Configuration
Description : Prepare SonarQube analysis configuration
Version : 6.3.2
Author : sonarsource
Help : More Information

##[warning]Error while executing SonarQube:Prepare task: AbortController is not defined
##[error]AbortController is not defined
Finishing: Msbuild - Prep Code and Vulnerability analysis

Hey there.

A little research shows me this error can be related to the version of NodeJS that is running the task.

Can you, as an experiment, set a AGENT_USE_NODE10 variable in your pipeline to false and see if that changes the behavior?

It would also be good to know what Azure DevOps Agent version you’re using.

We are using version 3.241.0 of the Azure DevOps Agent. Will try the variable.

Just to close this, turns out we where still using v14 of Node behind the scenes. Pushed that up to v16 LTS and it works now.

1 Like