Error: No provider for t
Run the following command and first find which service dependency is missing. Fix it locally, Prod build will automatically works.
ng serve --prod --optimization=false
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.
You are trying to use a service that is not listed in providers
of your AppModule. Add the service to a providers list to make it work.