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.GulpBuild:gulp buildgulp build[3232]: src\node_contextify.cc:633: 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.
Solution
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.