问题
I'm developing an angular application, and when I tried to install the latest version of primeng , I'm getting version mismatch error as shown below ,
I want to use the latest version primeng 5.0.2 for its upgraded features in my Angular 4 project , won't this work ?
回答1:
No it won't work because of AOT constraints.
From PrimeNG blog :
Angular 5 Support
PrimeNG 5 fully support Angular 5, if your project is on Angular 4, the PrimeNG version to use would be 4.x as PrimeNG 5 does not work on Angular 4 due to AOT constraints.
So you have to upgrade Angular from 4 to 5.
来源:https://stackoverflow.com/questions/47630214/primeng-5-0-2-doesnt-work-with-angular-4