primeng 5.0.2 doesn't work with Angular 4?

岁酱吖の 提交于 2019-12-13 03:04:26

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!