@capacitor/google-maps@5.2.2 shows error 'GoogleMap is not compatible with Angular Ivy'

I am using @capacitor/google-maps@5.2.2 in my application but when i declare it in imports array inside app.module.ts it shows me error :

‘GoogleMap’ does not appear to be an NgModule class.

This likely means that the library (@capacitor/google-maps) which declares GoogleMap is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library’s authors to see if the library is expected to be compatible with Ivy.

I have also added schemas: [CUSTOM_ELEMENTS_SCHEMA], in my app.module.tsfile and even in the module where I am using this . But the error is still coming.
Please guide me with this . Is there any other alternative to use? My use case is to share my current location in chat. Just like we do in whatsapp.