I am trying to compile my angular code to production mode via ng build --prod and its successful but in browser I get the error :
ERROR p {_
Disable the terser plugin by editing the file:
node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs/common.js
and comment out:
extraMinimizers.push(new TerserPlugin({
sourceMap: scriptsSourceMap,
parallel: true,
cache: true,
terserOptions,
}));
rebuild the app with ng build frontend --prod and you should be able to see in the console which service can't be injected.