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

**URL:** <https://forum.ionicframework.com/t/error-uncaught-in-promise-error-no-provider-for-angularfireauth/109923>\
**Category:** ionic-v3\
**Created:** [October 25, 2017, 11:45am UTC](https://forum.ionicframework.com/t/error-uncaught-in-promise-error-no-provider-for-angularfireauth/109923 "2017-10-25T11:45:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mahaveer08](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mahaveer08/32/115839_2.png) [@mahaveer08](https://forum.ionicframework.com/u/mahaveer08)\
**Post date:** [October 25, 2017, 11:45am UTC](https://forum.ionicframework.com/t/error-uncaught-in-promise-error-no-provider-for-angularfireauth/109923/1 "2017-10-25T11:45:17Z")

</div>

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](http://localhost:8100/build/vendor.js:1526:90)) at noProviderError ([http://localhost:8100/build/vendor.js:1564:12](http://localhost:8100/build/vendor.js:1564:12)) at ReflectiveInjector\_._throwOrNull ([http://localhost:8100/build/vendor.js:3006:19](http://localhost:8100/build/vendor.js:3006:19)) at ReflectiveInjector_._getByKeyDefault ([http://localhost:8100/build/vendor.js:3045:25](http://localhost:8100/build/vendor.js:3045:25)) at ReflectiveInjector_._getByKey ([http://localhost:8100/build/vendor.js:2977:25](http://localhost:8100/build/vendor.js:2977:25)) at ReflectiveInjector_.get ([http://localhost:8100/build/vendor.js:2846:21](http://localhost:8100/build/vendor.js:2846:21)) at resolveNgModuleDep ([http://localhost:8100/build/vendor.js:9846:25](http://localhost:8100/build/vendor.js:9846:25)) at NgModuleRef\_.get ([http://localhost:8100/build/vendor.js:10934:16](http://localhost:8100/build/vendor.js:10934:16)) at resolveNgModuleDep ([http://localhost:8100/build/vendor.js:9846:25](http://localhost:8100/build/vendor.js:9846:25)) at NgModuleRef\_.get ([http://localhost:8100/build/vendor.js:10934:16](http://localhost:8100/build/vendor.js:10934:16))

What is this error all about?

---

<div class="post-metadata">

**Author:** ![bengtler](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/bengtler/32/98565_2.png) [@bengtler](https://forum.ionicframework.com/u/bengtler)\
**Post date:** [October 25, 2017, 1:25pm UTC](https://forum.ionicframework.com/t/error-uncaught-in-promise-error-no-provider-for-angularfireauth/109923/2 "2017-10-25T13:25:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mahaveer08](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mahaveer08/32/115839_2.png) [@mahaveer08](https://forum.ionicframework.com/u/mahaveer08)\
**Post date:** [October 26, 2017, 4:31am UTC](https://forum.ionicframework.com/t/error-uncaught-in-promise-error-no-provider-for-angularfireauth/109923/3 "2017-10-26T04:31:21Z")

</div>

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

 ![error](https://global.discourse-cdn.com/ionicframework/original/3X/9/b/9bf90eecd8da5fd596faca7a1eea7d9e4acf18ab.jpg)

 ![Capture](https://global.discourse-cdn.com/ionicframework/original/3X/b/6/b61a170d517b654c6ab0f790724d3b603398826c.PNG)

---

<div class="post-metadata">

**Author:** ![mahaveer08](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mahaveer08/32/115839_2.png) [@mahaveer08](https://forum.ionicframework.com/u/mahaveer08)\
**Post date:** [October 26, 2017, 4:51am UTC](https://forum.ionicframework.com/t/error-uncaught-in-promise-error-no-provider-for-angularfireauth/109923/4 "2017-10-26T04:51:37Z")

</div>

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