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 with Circle #1855

Closed
Foreverdie opened this issue Aug 6, 2020 · 6 comments · Fixed by #1856
Closed

Cannot read property 'then' of undefined with Circle #1855

Foreverdie opened this issue Aug 6, 2020 · 6 comments · Fixed by #1856

Comments

@Foreverdie
Copy link

Hello,

i've got an error since i've installed new version...

Issue description
image

Steps to reproduce and a minimal demo of the problem
Install Angular 10 and AGM 3.0.0-beta.0

Current behavior

Expected/desired behavior
No error

angular-google-maps, Angular, & any other relevant dependency versions

  • Angular 10
  • AGM 3.0.0-beta.0

Other information

@ghost
Copy link

ghost commented Aug 6, 2020

I think I know what went wrong, but I'd still like a minimal reproducible example to make sure.

sebholstein pushed a commit that referenced this issue Aug 11, 2020
manager classes ran getNativeMap to call wrapper class which itself
waited for map to be ready. Change to create an unresolved promise
immediately

fixes: #1855
fixes: #1857
@agarate
Copy link

agarate commented Sep 2, 2020

same problem with rectangle, i installed today 2020-09-02

<agm-map [latitude]="-33.5535733803" [longitude]="-71.181041457" [zoom]="10">
<agm-rectangle [north]="-33.5535733803" [west]="-71.181041457" [south]="-33.4306097541" [east]="-71.0382048437" [strokeColor]="'black'" [strokeWeight]="2">

Captura de Pantalla 2020-09-02 a la(s) 17 02 09

"@agm/core": "^3.0.0-beta.0"
"@angular/common": "~8.1.2",
"@angular/compiler": "~8.1.2",
"@angular/core": "~8.1.2",

in package.json

@ghost
Copy link

ghost commented Sep 3, 2020

rectangle was also fixed in the PR that wasn't yet released.

separate issue, if you're using angular 8, use angular 1.1.0

@agarate
Copy link

agarate commented Sep 3, 2020

what version of angular? angular 1.1.0? angularJS?

@ghost
Copy link

ghost commented Sep 4, 2020

sorry, I meant use AGM 1.1.0

@ArmandoPerdomo
Copy link

A temporary solution is a downgrade to "@agm/core": "1.1.0"

This worked for me

The actual version is 3.0.0 beta and its a Pre Release, so this means that is not a stable version

I took the example package.json from this plunker
https://stackblitz.com/edit/angular-google-maps-demo?file=app%2Fapp.component.html

Check the releases
https://github.com/SebastianM/angular-google-maps/releases

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

Successfully merging a pull request may close this issue.

3 participants