New pages work only in Serve - No provider for t! under android


#1

If I run ionic serve, I have no problem.
If I run android, on device, only the pages that came in the template ( sidemenu ) work.
Additional pages I add only work in ionic serve.
In Ionic run android I get “No provider for t!” on the new pages but the original page1 and page2 work fine.

I have the new pages declared in components.ts and module.ts under both declarations and entryComponents.

Cordova CLI: 6.3.1
Gulp version: CLI version 3.9.0
Gulp local:
Ionic Framework Version: 2.0.0-rc.1
Ionic CLI Version: 2.1.1
Ionic App Lib Version: 2.1.1
Ionic App Scripts Version: 0.0.36
OS:
Node Version: v6.8.0


Update and considered resolved:

Not positive but I think it was because of AuthService not being injected correctly.
For note, here is what is working for me in my app.module.ts

import {AuthHttp, AUTH_PROVIDERS, AuthConfig} from "angular2-jwt";

export function getAuthHttp(http) {
 return new AuthHttp(new AuthConfig({
   noJwtError: true
 }), http);

}

and my providers looks like:

providers: [
Storage,
AuthHttp,
AuthService,
{
  provide: AuthHttp,
  useFactory: getAuthHttp,
  deps:[Http]
}

]


RC.0 No provider for e!