# Providers cannot be resolved

**URL:** <https://forum.ionicframework.com/t/providers-cannot-be-resolved/68148>\
**Category:** ionic-v3\
**Created:** [October 25, 2016, 11:44am UTC](https://forum.ionicframework.com/t/providers-cannot-be-resolved/68148 "2016-10-25T11:44:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SoniaApp](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@SoniaApp](https://forum.ionicframework.com/u/SoniaApp)\
**Post date:** [October 25, 2016, 11:44am UTC](https://forum.ionicframework.com/t/providers-cannot-be-resolved/68148/1 "2016-10-25T11:44:45Z")

</div>

I have been having problems with providers/injections since version 2.0.0.  
The error I keep getting is the following (with different providers, not only this one):

> Uncaught Error:  
> Can’t resolve all parameters for LoginRedirectService: (App, ?, AlertController).

There seems to be a problem with resolving injections of my providers, even though they are all decorated with @Injectable.

one file

```
@Injectable()
export class LoginRedirectService {

    constructor(
        public app:App, 
        //another provider, needed within this one - this cannot be resolved
        public authService: AuthenticationService,
        public alert:AlertController
    )
//...
}

```

different file

```
@Injectable()
export class AuthenticationService {
    constructor(public dataService:DataService){
        //...
    }
}

//...

```

and so on.

I also have added all providers in the app.module.ts, in the order in which they have to be injected in:

```
//Ordered by dependencies, bottom is the most dependent on others
providers: [
    RssService,
    EmergencyEmailService,
    InAppBrowserService,
    ExternalBrowser,
    AppLauncherService,
    LauncherPlaner,
    LauncherSkype,
    ConnectivityService,
    MockRemoteDataService,
    SoniaMirthRemoteDataService,
    DataService,
    AuthenticationService,
    LoginRedirectService,
    NewsStreamService,
    SoniaBootstrapService
]

```

My project structure looks like this:

- src
  - app
    - app.module.ts
    - app.component.ts

  - assets
  - pages
  - providers
    - sub-folders

  - …

- package.json etc.

I have tried explicitly calling @Inject in the constructors of classes where they are needed, but no success either.

I am really out of ideas what to do and appreciate any help, thanks

---

<div class="post-metadata">

**Author:** ![antonkad](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@antonkad](https://forum.ionicframework.com/u/antonkad)\
**Post date:** [November 3, 2016, 1:10pm UTC](https://forum.ionicframework.com/t/providers-cannot-be-resolved/68148/2 "2016-11-03T13:10:07Z")

</div>

Hello, i have the same probleme, did you found any solution ?
