0
votes

I'm able to build my project in both DEV and PROD with no errors on the compile, and am able to deploy both builds to my firebase hosting environment. The DEV build runs fine but I get a console error on the PROD build..

main-es2015.d02f828b5c57da1c86c4.js:1 ERROR TypeError: oI(...).database is not a function

javascript error https://imgur.com/PuR60M0

location in file https://imgur.com/lOLfp1A

Tried compiling a DEV Build with --aot=true - that ran fine as well once deployed.

1

1 Answers

0
votes

Solution found here - needed to use AngularFireDatabaseModule instead of AngularFireDatabase https://github.com/angular/angularfire2/issues/2132