Extending HttpErrorResponse leads to error Cannot find module '@angular/common/http'
问题 I have a model (defined in separate file) which extends HttpErrorResponse with custom property. Custom property is an interface with few properties: import { HttpErrorResponse } from '@angular/common/http'; export interface ApiErrorBody { id: number; code: string; message?: string; trace?: string; } export class ApiErrorResponse extends HttpErrorResponse { public error: ApiErrorBody; } This code works fine in debug mode, but when compiling to prod, I see error at runtime: Error: Cannot find