-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Object(...) is not a function #31
Comments
Hey @MattL-NZ, please re-post your code as a code block. Otherwise it's too hard to read. And please specify the line where the error occurs. Thanks. Cheers |
I got the same issue, as i recently updated to ionic 4.4.0
|
Hey @marquish, Thanks! Describe the bug To Reproduce Expected behavior Plugin Version Smartphone (please complete the following information):
Additional context |
Closed due to inactivity |
I'm getting an
TypeError: Object(...) is not a function
error when trying to use Native Geocoder.Code is below:
import { NativeGeocoder, NativeGeocoderOptions, NativeGeocoderReverseResult,
NativeGeocoderForwardResult } from '@ionic-native/native-geocoder'; constructor(private Platform: Platform, public loadingCtrl: LoadingController, private router: Router, public natGeo: NativeGeocoder) {}
... let options: NativeGeocoderOptions = { useLocale: true, maxResults: 5 };
this.natGeo.forwardGeocode('Berlin', options) .then((coordinates: NativeGeocoderForwardResult[]) => console.log('The coordinates are latitude=' + coordinates[0].latitude + ' and longitude=' + coordinates[0].longitude)) .catch((error: any) => console.log(error)); ...
How can I get this to work please?
The text was updated successfully, but these errors were encountered: