primeng 5.0.2 doesn't work with Angular 4?

2019-08-22 23:05发布

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 enter image description here,

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条回答
仙女界的扛把子
2楼-- · 2019-08-22 23:55

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.

查看更多
登录 后发表回答