appRate does not exist on type myApp

I’m trying to add appRate to my app https://ionicframework.com/docs/native/app-rate/
after I installed the plugin i got this error Property 'appRate' does not exist on type 'MyApp'.
my code

this.ppRate.preferences = {
                    usesUntilPrompt: 3,
                    storeAppURL: {
                     ios: '<app_id>',
                     android: 'market://details?id=<package_name>',
                     windows: 'ms-windows-store://review/?ProductId=<store_id>'
                    }
                  };
                  
                  this.appRate.promptForRating(false);

Does the constructor for this class look exactly like the one in the docs you linked?

thank you @rapropos <3