Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

In Angular 8.0.3, when enable the ivy then flex-layout type error occur. #1119

@NikitaPooja

Description

@NikitaPooja

I am using angular 8.0.3 version in which by default enableIvy is true. but When I have install the flex layout then type error occur:-

ERROR in __ng_typecheck__.ts(31,64): error TS2344: Type '"fxShow" | "fxShow.print" | "fxShow.xs" | "fxShow.sm" | "fxShow.md" | "fxShow.lg" | "fxShow.xl" | "fxShow.lt-sm" | "fxShow.lt-md" | "fxShow.lt-lg" | "fxShow.lt-xl" | "fxShow.gt-xs" | ... 17 more ... | "fxHide.gt-lg"' does not satisfy the constraint '"ngOnDestroy" | "ngAfterViewInit" | "ngOnChanges" | "activatedValue"'.
  Type '"fxShow"' is not assignable to type '"ngOnDestroy" | "ngAfterViewInit" | "ngOnChanges" | "activatedValue"'.
__ng_typecheck__.ts(46,64): error TS2344: Type '"fxLayout" | "fxLayout.xs" | "fxLayout.sm" | "fxLayout.md" | "fxLayout.lg" | "fxLayout.xl" | "fxLayout.lt-sm" | "fxLayout.lt-md" | "fxLayout.lt-lg" | "fxLayout.lt-xl" | "fxLayout.gt-xs" | "fxLayout.gt-sm" | "fxLayout.gt-md" | "fxLayout.gt-lg"' does not satisfy the constraint '"ngOnDestroy" | "ngOnChanges" | "activatedValue"'.
  Type '"fxLayout"' is not assignable to type '"ngOnDestroy" | "ngOnChanges" | "activatedValue"'.

How to resolve this type error????
when I have set the enableIvy value false then error remove. But I want to enable the Ivy and also use the flex layout.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions