Cannot resolve paramater for Auth?

i have got this error …Someone help me to find this error…My code is

import {Auth,User} from '@ionic/cloud-angular';
import { Component } from '@angular/core';

and i have add Auth and user to the components

@Component({  
selector: 'page-home',  
templateUrl: 'home.html',
 providers:[Auth,User],
})

and i added the parameters to the constructors and my code is

  this.auth.login('google').then(response=>{              
   const full_name = this.user.social.google.data.full_name;           
   const profile_picture = this.user.social.google.data.profile_picture;       
   const email = this.user.social.google.data.email;                
   window.localStorage.setItem('CurrentUser',JSON.stringify(response));     
         //pushing to the next page      
        this.navCtrl.push(UserPage,{   
             username: full_name,   
             userimage : profile_picture,    
            email : email,   
           }); 
         }).catch(error=>{  
          alert("Error Occured..!");
     })
})

what i am done wrong.Anyhelp thanks

Did you https://docs.ionic.io/setup.html#configuration?

i solved @Sujan12 thanks for your reply… :slight_smile:

Might you share how? Future readers might have similar problems and profit from a solution.

I have cleared this error by following this error…This error is due to continous call to the Auth Providers.

1 Like