question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
CaerusKarucommented, Sep 10, 2019

What version of Flex Layout are you using?

0reactions
angular-automatic-lock-bot[bot]commented, Nov 18, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flex Layout compilation error for SSR build with Angular Ivy
What I guess whats going on is that Ivy does not get the core module is already compiled and then failes in the...
Read more >
cannot read property of undefined (reading 'id') angular
Call enableProdMode() to enable the production mode. Then the error Uncaught TypeError: Cannot read property 'apply' of undefined at XMLHttpRequest.desc.get as ...
Read more >
@ng-bootstrap/ng-bootstrap | Yarn - Package Manager
This release bumps minimum supported versions to Angular 15.0.0, Bootstrap 5.2.3 and Popper 2.11.6. It also introduces support for standalone components, which ...
Read more >
How to Use Async Pipe in Angular 8 application - Morioh
Here in the below code we are using observables of any type and to get the asynchronous flow data either we can use...
Read more >
Angular 버전 변경 리스트 - change log
core: log error instead of warning for unknown properties and elements ... bazel: enable ivy template type-checking in g3 (#35672) (8f5b7f3) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found