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 environment.prod.ts file
// and your environment.prod.ts files environment variable doesn’t have the firebase
// field hence you are getting the exception.

export const environment = {
production: true,
firebase: {
apiKey: “…”,
authDomain: “project.firebaseapp.com”,
databaseURL: “https://project.firebaseio.com”,
projectId: “project”,
storageBucket: “project.appspot.com”,
messagingSenderId: “…”
}
};

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

More questions on [categories-list]

0
inline scripts encapsulated in