Skip to content

AngularFireModule.initializeApp not using configuration #1281

@codercatdev

Description

@codercatdev

Version info

Angular:
4.4.3

Firebase:
4.5.0

AngularFire:
5.0.0-rc.2

Other (e.g. Ionic/Cordova, Node, browser, operating system):
nahollmo37714n:drinkpublic.com gap4$ ionic info

cli packages: (/Users/gap4/Documents/WEB/drinkpublic.com/node_modules)

@ionic/cli-utils  : 1.13.0
ionic (Ionic CLI) : 3.13.0

global packages:

cordova (Cordova CLI) : 7.0.1

local packages:

@ionic/app-scripts : 3.0.0-201710161925
Cordova Platforms  : none
Ionic Framework    : ionic-angular 3.7.1-201710060319

System:

Android SDK Tools : 26.0.2
ios-deploy        : 1.9.1
Node              : v6.11.4
npm               : 5.4.2
OS                : macOS Sierra
Xcode             : Xcode 9.0 Build version 9A235

How to reproduce these conditions

Manual configuration is not taking affect when setting it up through
AngularFireModule.initializeApp(ENV.firebase)

It seems to only pull in .src/environments/environment.ts file

Steps to set up and reproduce

Sample data and security rules

Open

Debug output

** Errors in the JavaScript console **

** Output from firebase.database().enableLogging(true); **

** Screenshots **

Expected behavior

Should be using my development firebase conig.

Actual behavior

Wrong firebase config is provided (my production config)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions