Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AOT compile with Angular CLI fails

See original GitHub issue

I added angular-star-rating (2.0.1) to my project last week and had no problems running JIT or AOT. Today, my build sever is failing and pointing to the following lines in angular-star-rating:

/node_modules/angular-star-rating/src/star-rating.component.ts.StarRatingComponent.html (9,17): Supplied parameters do not match any signature of call target. /node_modules/angular-star-rating/src/star-rating.component.ts.StarRatingComponent.html (9,17): Supplied parameters do not match any signature of call target.`

I’m looking at the changes over the last few days and don’t see anything related to any of the event methods that this error message type usually refers to. Anyone on the team have an idea what this could be about?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

BioPhotoncommented, May 29, 2017

Hi @mhjmaas ! BIG THX for your help!

Enjoy AOT in version 3.0.0 on npm


mhjmaascommented, May 29, 2017

It seems you need to modify line 52 in the angular-star-rating sourcecode:



(mouseleave)="onStarHover()"> to (mouseleave)="onStarHover($event)">

AOT compilation needs to match these parameters exactly to be able to do efficient tree shaking I believe. At least when I edit this line, everything starts working fine again. 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular 6 AOT compilation not working - Error in ... - GitHub
I created minimal sample app to reproduce this error. The key point is that this app is AOT compiled using the webpack plugin...
Read more >
Error while using @angular compiler in Angular 5 and AOT ...
This Code works fine, but if I want to use AOT-Prerendering the Component wont work, because Angular does not load the Compiler in...
Read more >
Angular: Writing AoT-friendly applications | by David - Medium
The Angular CLI outputs the build artefacts in the dist folder which now looks like ... This causes AoT compilation to fail and...
Read more >
Ahead-of-time (AOT) compilation - Angular
The Angular ahead-of-time (AOT) compiler converts your Angular HTML and TypeScript code into efficient JavaScript code during the build phase before the ...
Read more >
Improved Error Logging by the Angular AOT Compiler
In Angular 10.1, another error logging improvement by the AOT compiler is introduced. Let's see how the error logging has improved over the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found