Open VesperDev opened 7 years ago
Hmm, not seeing this over here. Did you change any defaults or any code?
I revolved it as follows import { User } from '../../providers/user';
I have this problem, too, when creating a new page, and adding in tabs.
I had the same problem. @mlynch I believe this is problem with src/providers/user.ts
import { Cognito } from './providers';
should be changed to
import { Cognito } from './aws.cognito';
The current import appears to be causing a circular reference and causing a problem. When I made the change above, that fixed the issue for me.
@swbradshaw thanks it worked
@swbradshaw I looked for about an hour on what the problem was trying to figure it out when I came here and your wizard powers cured it! Thanks, man!
Sorry for the late, @swbradshaw thanks it worked
This error occur sometime when you define navcontroller like this(public navCtrl: NavController, public navParams: NavParams)
in your .ts
file's constructor, but dont import it on top of the page like thisimport { NavController, NavParams } from 'ionic-angular';
I have had the same issue for three hours now, and despite the solutions this still has not worked.
# current-user-service.ts
@Injectable()
export class CurrentUserService {}
# authorization-service.ts
import { CurrentUserService } from './current-user-service';
@Injectable()
export class AuthorizationManager {
constructor(private currentUserService: CurrentUserService) {}
}
# authorization-manager-service.ts
import { AuthorizationManager } from "./authorization-manager";
@Injectable()
export class AuthorizationManagerService {
constructor(private authorizationManager: AuthorizationManager) {}
}
#app.module
import { AuthorizationManagerService } from "./authorization-manager-service";
...providers
[ CurrentUserService, AuthorizationManager, AuthorizationManagerService ]....
Error:
Uncaught Error: Can't resolve all parameters for AuthorizationManager: (?).
i have a doubt ¿why when i try of get information of user i am get this error?