Error: Uncaught (in promise): Error: No provider for AngularFireAuth!-----------------

I am creating an login registration app using AngularFire2 but I am getting Error: Uncaught (in promise): Error: No provider for AngularFireAuth!

Runtime Error
Uncaught (in promise): Error: No provider for AngularFireAuth! Error: No provider for AngularFireAuth! at injectionError (http://localhost:8100/build/vendor.js:1526:90) at noProviderError (http://localhost:8100/build/vendor.js:1564:12) at ReflectiveInjector_.throwOrNull (http://localhost:8100/build/vendor.js:3006:19) at ReflectiveInjector.getByKeyDefault (http://localhost:8100/build/vendor.js:3045:25) at ReflectiveInjector.getByKey (http://localhost:8100/build/vendor.js:2977:25) at ReflectiveInjector.get (http://localhost:8100/build/vendor.js:2846:21) at resolveNgModuleDep (http://localhost:8100/build/vendor.js:9846:25) at NgModuleRef_.get (http://localhost:8100/build/vendor.js:10934:16) at resolveNgModuleDep (http://localhost:8100/build/vendor.js:9846:25) at NgModuleRef_.get (http://localhost:8100/build/vendor.js:10934:16)

What is this error all about?

You have to add the AngularFireAuth provider to your app.module providers to inject it in your components / Services.

or if AngularFire2 is a complete module --> you need to add this module to your imports

Hi @bengtler, I have already imported AngularFireAuth. Why is the issue appearing even after importing AngularFireAuth. Refer below screenshot

Issue resolved. Need to import AngularFireAuthModule under app.module.ts