Cannot combine @Input decorators with query decorators using Ivy

前端 未结 4 2145
无人共我
无人共我 2020-12-20 14:54

I have migrated my angular 7 app to 8.0.0 and i\'am now trying the new compiler ivy.

The app works perfectly without ivy but when i try to compile with it i have the

4条回答
  •  無奈伤痛
    2020-12-20 15:31

    The problem is that somewhere in your application you're using the @Input decorator together with one of the query decorators (@ContentChild, @ContentChildren, @ViewChild, @ViewChildren, @Query). This combination of decorators actually makes no sense and may prevent the compiler from correctly analyzing your code, therefore you get the error Cannot combine @Input decorators with query decorators.

    Look through your code and remove every @Input decorator from members which have a query decorator applied. Also, you might check if all of your 3rd party libraries are compatible with angular 8.0.0.

提交回复
热议问题