Skip to content
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

Cannot read property 'then' of undefined` when I use map.clear().then(() => {}); #1915

Closed
carvemerson opened this issue Aug 22, 2017 · 2 comments

Comments

@carvemerson
Copy link

I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request

Current behavior:

When I use the map.clear() method, it should work as a promise (like the Ionic documentation https://ionicframework.com/docs/native/google-maps/#clear).
But when I use map.clear().then(() => { /*do something*/ }) I got this error:

Error: Uncaught (in promise): TypeError: Cannot read property 'then' of undefined

Expected behavior:

The map.clear().then(() => { /*do something*/ }) works.

@wf9a5m75
Copy link
Contributor

wf9a5m75 commented Sep 6, 2017

This is already fixed.
mapsplugin/cordova-plugin-googlemaps#1669

@BassamHabash
Copy link

Hi,
I have the same issue in secureStorage plugin, when I use the secureStorage.create('key') method.
@wf9a5m75
@carvemerson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants