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

Getting Error: Supplied parameters do not match any signature of call target #11

Open
Mage111 opened this issue Mar 26, 2017 · 5 comments

Comments

@Mage111
Copy link

Mage111 commented Mar 26, 2017

"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.

@sabrio
Copy link

sabrio commented Apr 13, 2017

+1 ??!!

@sfinx13
Copy link

sfinx13 commented Apr 19, 2017

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.

@MarcoFlyertech
Copy link

The author is unresponsive and that's a pity. I'm gonna fork the project if the license allows it.

@Artur93gev
Copy link

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

@steeper
Copy link

steeper commented Sep 21, 2017

[style.background-color]="getColor()" : this line gives the error on ng build --prod if you give it a parameter it works perfectly

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

6 participants