-
Notifications
You must be signed in to change notification settings - Fork 821
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: ctorParameters.map is not a function #812
Comments
I have the exact same issue as well |
@rhernandez-itemsoft @kmmartell can you update to the latest angular version and try it again? |
I had the same problem and it disappeared after updating to Angular 2.3.1 |
I have same issue but I can't upgrade to 2.3.1 because angular-webpack2-starter (with Universal) can't update (yet) to 2.3+ |
Hey everyone - Thanks for feedback. @fdambrosio I got mine to work by just downgrading the Google Maps rather than upgrading angular. I used 0.16 and was previously using 0.17. When I moved to 0.16 that worked fine and the error went away. |
thanks @kmmartell I moved to 0.16 |
I fixed this by running, Then I updated any angular dependencies that were not latest to the latest versions. In my case
Once I did this I received errors with
So I upgraded those dependencies to latest as well. After that I was able to run |
There must a breaking change in the 2.4 compiler. I will try to debug it. |
thanks @wuno but now I can't upgrade to 2.4.1 because I'm using https://github.com/qdouble/angular-webpack2-starter |
@fdambrosio Why can't you update your angular 2? I get that it might break some other parts of the app but if there is anything I have learned about developing with Angular2 in the past few months, it is you better get used to things constantly breaking. |
@wuno because we're using Universal branch, and
|
Hi @kmmartell how can you downgrade google map to 0.16? |
@agokrim npm install angular2-google-maps@0.16 --save |
After some research yesterday, I'm not able to fix this. The compiler CLI 2.3 creates uncompatible code for angular 2.2 and smaller. See the details here: http://stackoverflow.com/a/41444599 So the only options are:
Sorry, but there's no other option right now! |
To follow up @SebastianM 's answer, I've found that this issue is caused by any number of packages expecting the version of Angular Core to be different than what is actually installed. I was able to figure out the cause of this issue by looking at the error report from
This helped me realize that one of my packages expected Angular to be at v2.4.4, but I'm using v2.0.1. I updated my package.json to have both packages set to my core version like this:
Your issue might not be with @angular/platform-server, but I hope this helps debug it |
I had the same problem...
|
Iget this error: "TypeError: ctorParameters.map is not a function" and not found this library.
Steps to reproduce and a minimal demo of the problem*:
1 - npm install angular2-google-maps --save
2 - import { AgmCoreModule } from 'angular2-google-maps/core';
3 - <sebm-google-map [latitude]="lat" [longitude]="lng">
<sebm-google-map-marker [latitude]="lat" [longitude]="lng">
4 - ng serve
The text was updated successfully, but these errors were encountered: