firebase not found in envirorment.ts file angular

The solution for “firebase not found in envirorment.ts file angular” can be found here. The following code will assist you in solving the problem.

// When you run ng build –prod angular-cli will use the file
// and your files environment variable doesn’t have the firebase
// field hence you are getting the exception.

export const environment = {
production: true,
firebase: {
apiKey: “…”,
authDomain: “”,
databaseURL: “”,
projectId: “project”,
storageBucket: “”,
messagingSenderId: “…”

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

inline scripts encapsulated in