Matthew Layton
Matthew Layton

Reputation: 42270

Angular ng build -prod error: Supplied parameters do not match any signature of call target

When I run ng build --target=production I get the following error:

ERROR in C:/Repo/NewCo/src/$$_gendir/app/fu/bar/fubar.component.ngfactory.ts (4011,35): Supplied parameters do not match any signature of call target.

I don't even know where to start with this...It would be useful if ng build gave me a little more insight into:

Can anyone explain how I can identify any of the above?

Upvotes: 0

Views: 353

Answers (1)

Robin Dijkhof
Robin Dijkhof

Reputation: 19288

You are probably calling a method from your template which shouldn't (or should) have parameters.

Something like this:

*ngIf="shouldShow()"

shouldShow(show: boolean){//do some}

As you can see these the supplied parameters do not match any signature of call target.

Upvotes: 2

Related Questions