Getting Error: Supplied parameters do not match any signature of call target
Mage111 opened this issue · comments
"angular2-ui-switch": "1.2.0",
When upgrade to angular 4 and angular\cli 1.0.0
getting this error when compiling with AOT:
ERROR in ng:///C:/ProjentName/node_modules/angular2-ui-switch/src/ui-switch.component.ts.UiSwitchComponent.html (8,3): Supplied parameters do not match any signature of call target.
Seems that there is no match between calling method from html, and signature of the method in the component.
+1 ??!!
Same error after ng build --prod
src/$$_gendir/node_modules/angular2-ui-switch/src/ui-switch.component.ngfactory.ts (238,28): Supplied parameters do not match any signature of call target.
The author is unresponsive and that's a pity. I'm gonna fork the project if the license allows it.
Hi guys
you can look at this answer oferh/ng2-completer#215
than if you want to solve the problem you need to look at this https://stackoverflow.com/questions/43112636/angular2-supplied-parameters-do-not-match-any-signature-of-call-target
P.S.
the last answer helped me to solve but by understanding that it is ruling by 'vis versa' too.
I had function called from template with $event paramter and did not describe it in controller my function did not expected any parametre
I hope this will help
[style.background-color]="getColor()" : this line gives the error on ng build --prod if you give it a parameter it works perfectly