So I was trying to build and deploy my Angular 4 app for production on both Firebase and Heroku, but I have come across the error as follows:
ERROR in /U
I hate duplicates in code so let's create a separate file named environments/firebase.ts with content
environments/firebase.ts
export const firebase = { //... };
the usage
import {firebase} from '../environments/firebase'; //... AngularFireModule.initializeApp(firebase)
all is clear as for me