Ionic 6 cordova sign in with apple modul import error

Hi,

I need apple sign in in my app, so I installed it by the documentation for cordova. But after import in app.module.ts and ionic serve, it tells me in console Error: Invalid provider for the NgModule 'AppModule' - only instances of Provider and Type are allowed, got: [[object Object]] and app do not run. If I remove this import app is running.

Do you have any ideas what can be wrong?

My ionic info output:


   Ionic CLI                     : 6.20.6 (/Users/mc/.nvm/versions/node/v16.18.1/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 6.5.2
   @angular-devkit/build-angular : 15.0.4
   @angular-devkit/schematics    : 15.0.4
   @angular/cli                  : 15.0.4
   @ionic/angular-toolkit        : 6.1.0

Cordova:

   Cordova CLI       : 10.0.0 (cordova-lib@10.1.0)
   Cordova Platforms : none
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 11 other plugins)

Utility:

   cordova-res (update available: 0.15.4) : 0.15.3
   native-run (update available: 1.7.1)   : 1.5.0

System:

   ios-deploy : 1.11.4
   ios-sim    : 8.0.2
   NodeJS     : v16.18.1 (/Users/mc/.nvm/versions/node/v16.18.1/bin/node)
   npm        : 8.19.2
   OS         : macOS
   Xcode      : Xcode 14.2 Build version 14C18

Thanks for you reactions.

Hi @mcihak0,

did you add /ngx at the end of the import?

import { SignInWithApple } from '@awesome-cordova-plugins/sign-in-with-apple/ngx';

Hi,

yes. I have it there.