I ran into this error while trying to make an angular SSR build work. There's an existing property in angular.json
under projects.[project name].architect.server.options
called externalDependencies
.
I was able to add "appdynamics" to this array and the build finished.