I recently encountered an issue where my code was working fine just yesterday, but today when running "ng build --prod", I started getting errors. Surprisingly, the error persisted even after switching to older branches, indicating that it's not related to recent changes. I tried updating each package as recommended by some, but unfortunately, the same error persists. Here is a snippet of my app.module:
import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import {FormsModule} from '@angular/forms';
import {HttpModule} from '@angular/http';
// Other imports...
Package.json
{
// Package.json content...
}