Azure DevOps – The command “gulp build” exited with code 134.

I had a CI/CD pipeline working for a long while now without any issues in Azure DevOps. All of a sudden, my build starts breaking with the following error:

The command “gulp build” exited with code 134.
 gulp build
 gulp build[3232]: src\ Assertion `args[1]->IsString()’ failed.

Probably spent a good 2 hours getting to the bottom of this! Turns out, you now need to add a dev dependency to natives@1.1.6 when using the gulp command. It seems like this is related to the HostedAgent platform that got an update in the background that can affect your builds.


Update your package.json and add the following devDependency:

"devDependencies": {
  "natives": "^1.1.6",

After adding the above, my CI Build started working again. Phew.

%d bloggers like this: