title: NgxAuthFirebaseUIModule displaying ERROR NullInjectorError: R3InjectorError(AppModule)[ActivatedRoute -> ActivatedRoute -> ActivatedRoute]:
body: <p>Im new to angular and tried to integrate with firestore but getting NullInjectorError R3InjectorError(AppModule)[ActivatedRoute -&gt; ActivatedRoute -&gt; ActivatedRoute] when using firestore authentication. here is my code. thanks in advance.</p>
  <p>app.module.ts</p>
  <pre><code>import { BrowserModule } from '@angular/platform-browser';
  import {FormsModule} from '@angular/forms'
  
  import { AppComponent } from './app.component';
  import { TableComponent } from './table/table.component';
  import { IonicModule } from '@ionic/angular';
  import { NavbarComponent } from './navbar/navbar.component';
  import{NgxAuthFirebaseUIModule }from 'ngx-auth-firebaseui'; 
  import { AngularFireModule } from '@angular/fire';
  
  import { environment } from '../environments/environment';
  import { AngularFireStorageModule } from '@angular/fire/storage';
  
  @NgModule({
    declarations: [
      AppComponent,
      TableComponent,
      NavbarComponent,
    ],
    imports: [
      BrowserModule,
      FormsModule,
      IonicModule, 
      AngularFireModule.initializeApp(environment.firebase),
      NgxAuthFirebaseUIModule.forRoot(environment.firebase),   
      AngularFireStorageModule,
    ],
    providers: [],
    bootstrap: [AppComponent]
  })
  export class AppModule { }
  </code></pre>
  <p>app.component.html</p>
  <pre><code>&lt;ngx-auth-firebaseui (onSuccess)=&quot;printUser($event)&quot;
  (onError)=&quot;printError($event)&quot;&gt;    
  &lt;/ngx-auth-firebaseui&gt;
  </code></pre>
  <p>app.component.ts</p>
  <pre><code>@Component({
    selector: 'app-root',
    templateUrl: './app.component.html',
    styleUrls: ['./app.component.css']
  })
  export class AppComponent {
    constructor() {
      
    }
    ngOnInit(): void {
      
    }
    printUser(event) {
      console.log(event);
    }
  
    printError(event) {
     console.error(event);
    }
  }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/tbZMy.png" rel="nofollow noreferrer">Console error image</a></p>