AOT compile with Angular CLI fails
See original GitHub issueI 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:
- Created 6 years ago
- Reactions:1
- Comments:15 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @mhjmaas ! BIG THX for your help!
Enjoy AOT in version 3.0.0 on npm
😃
It seems you need to modify line 52 in the angular-star-rating sourcecode:
from:
(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. 😃