AngularFire2 Cannot read property ‘indexOf’ of undefined

If you are using AngularFire in your project and you are getting the error:

Cannot read property ‘indexOf’ of undefined

you may have run into the same problem I did.  I previously had Firebase installed in my project as well as AngularFire.  The new version of AngularFire (AF2) already has the Firebase module pre-installed.  So to get your project compiling you will have to remove the standalone install of Firebase.  See more here.

 

 

 



I’m a mobile applications developer based in the UK, concentrating primarily on hybrid application development with Ionic but also with native development skills. Please visit www.crossplatformsolutions.co.uk for more information about me and how I may be able to help you with mobile application development, particularly with Ionic but also with other mobile frameworks and technologies.  Thanks for visiting.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s