# ORIGINAL EXCEPTION: No provider for NavController!

**URL:** <https://forum.ionicframework.com/t/original-exception-no-provider-for-navcontroller/64919>\
**Category:** ionic-v3\
**Created:** [September 29, 2016, 4:08am UTC](https://forum.ionicframework.com/t/original-exception-no-provider-for-navcontroller/64919 "2016-09-29T04:08:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![wannix](https://avatars.discourse-cdn.com/v4/letter/w/fbc32d/32.png) [@wannix](https://forum.ionicframework.com/u/wannix)\
**Post date:** [September 29, 2016, 4:08am UTC](https://forum.ionicframework.com/t/original-exception-no-provider-for-navcontroller/64919/1 "2016-09-29T04:08:44Z")

</div>

Hi folks!

I’m pretty new to ionic. Although I’m getting this error in this simple script the navigation works like charming. But I want to get rid of this errors coming up. Since the error says that “No provider for NavController” I tried adding NavController to the providers array(might be a silly attempt 😕). Then the navigation didn’t work at all. According to the google search I tried “@Inject(NavController) navCtrl” to inject the navController instead of “private navCtrl: NavController”. But no luck! Google search result is killing me since various syntax are out there related to the different versions. So any help would be highly appreciated.

Thanks.

```
Your system information:

Cordova CLI: 6.3.1
Gulp version: CLI version 3.9.1
Gulp local:
Ionic CLI Version: 2.0.0-beta.37
Ionic App Lib Version: 2.0.0-beta.20
OS:
Node Version: v6.5.0

```

My code \>\>

```
import { Component } from '@angular/core';
import { ionicBootstrap, NavController } from 'ionic-angular';
import {TimerWrapper} from '@angular/core/src/facade/async';

import { LoginPage } from '../../pages/login/login';

@Component({
  templateUrl: 'build/pages/flash-screen/flash-screen.html',
})
export class FlashScreenPage {
  constructor(private navCtrl: NavController) {
    // Redirect the Flash screen to login after 3000millis
      TimerWrapper.setTimeout(() => {  
          this.navCtrl.push(LoginPage);
          console.log("Redirected!");
      }, 3000);      
  }
}

ionicBootstrap(FlashScreenPage); 

```

The Error \>\>

```
EXCEPTION: Error: Uncaught (in promise): EXCEPTION: Error in ./FlashScreenPage class FlashScreenPage_Host - inline template:0:0
    ORIGINAL EXCEPTION: No provider for NavController!
    ORIGINAL STACKTRACE:
    Error: DI Exception
        at NoProviderError.BaseException [as constructor] (http://localhost:8100/build/js/app.bundle.js:1957:23)
        at NoProviderError.AbstractProviderError [as constructor] (http://localhost:8100/build/js/app.bundle.js:28613:16)
        at new NoProviderError (http://localhost:8100/build/js/app.bundle.js:28650:16)
        at ReflectiveInjector_._throwOrNull (http://localhost:8100/build/js/app.bundle.js:29647:19)
        at ReflectiveInjector_._getByKeyDefault (http://localhost:8100/build/js/app.bundle.js:29675:25)
        at ReflectiveInjector_._getByKey (http://localhost:8100/build/js/app.bundle.js:29638:25)
        at ReflectiveInjector_.get (http://localhost:8100/build/js/app.bundle.js:29447:21)
        at ElementInjector.get (http://localhost:8100/build/js/app.bundle.js:31218:48)
        at ElementInjector.get (http://localhost:8100/build/js/app.bundle.js:31218:48)
        at DebugAppView._View_FlashScreenPage_Host0.createInternal (FlashScreenPage.template.js:16:76)
    ERROR CONTEXT:
    [object Object]
```

---

<div class="post-metadata">

**Author:** ![cyberto](https://avatars.discourse-cdn.com/v4/letter/c/e56c9b/32.png) [@cyberto](https://forum.ionicframework.com/u/cyberto)\
**Post date:** [September 29, 2016, 1:03pm UTC](https://forum.ionicframework.com/t/original-exception-no-provider-for-navcontroller/64919/2 "2016-09-29T13:03:33Z")

</div>

I got the same problem since I upgraded to rc0

---

<div class="post-metadata">

**Author:** ![PhilippRath](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@PhilippRath](https://forum.ionicframework.com/u/PhilippRath)\
**Post date:** [September 29, 2016, 1:10pm UTC](https://forum.ionicframework.com/t/original-exception-no-provider-for-navcontroller/64919/3 "2016-09-29T13:10:25Z")

</div>

ionicBootstrap should not be used in rc0 did you read the [changelog](https://github.com/driftyco/ionic/blob/master/CHANGELOG.md)?

---

<div class="post-metadata">

**Author:** ![wannix](https://avatars.discourse-cdn.com/v4/letter/w/fbc32d/32.png) [@wannix](https://forum.ionicframework.com/u/wannix)\
**Post date:** [October 1, 2016, 5:56pm UTC](https://forum.ionicframework.com/t/original-exception-no-provider-for-navcontroller/64919/4 "2016-10-01T17:56:39Z")

</div>

willing to upgrade…

---

<div class="post-metadata">

**Author:** ![wannix](https://avatars.discourse-cdn.com/v4/letter/w/fbc32d/32.png) [@wannix](https://forum.ionicframework.com/u/wannix)\
**Post date:** [October 1, 2016, 6:23pm UTC](https://forum.ionicframework.com/t/original-exception-no-provider-for-navcontroller/64919/5 "2016-10-01T18:23:48Z")

</div>

Super thanks for the clue, problem solved! now I’m confusing about the versions, [quote=“wannix, post:1, topic:64919”]  
Ionic App Lib Version: 2.0.0-beta.20  
[/quote]  
what is this version number? they have only up to 2.0.0-beta.11 and then the latest “rc0” version. what’s is this versioning convention? probably I’m in 2.0.0-beta.11 version, but ionic info says it’s 2.0.0-beta.20 as you can see.

---

<div class="post-metadata">

**Author:** ![PhilippRath](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@PhilippRath](https://forum.ionicframework.com/u/PhilippRath)\
**Post date:** [October 4, 2016, 9:29am UTC](https://forum.ionicframework.com/t/original-exception-no-provider-for-navcontroller/64919/6 "2016-10-04T09:29:51Z")

</div>

if you run “npm show ionic@beta” you will see that there are more betas than 11 😃

---

<div class="post-metadata">

**Author:** ![wannix](https://avatars.discourse-cdn.com/v4/letter/w/fbc32d/32.png) [@wannix](https://forum.ionicframework.com/u/wannix)\
**Post date:** [October 4, 2016, 10:46am UTC](https://forum.ionicframework.com/t/original-exception-no-provider-for-navcontroller/64919/7 "2016-10-04T10:46:01Z")

</div>

yeah, I get it now 😉
