Geofence not working

I tried geofence in ionic 5 but it’s giving the below error.

Cannot find module ‘…/…/src/cordova/platform_metadata’
Require stack: