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.
Build error after Angular & flexLayout upgrade - MediaQueryListEvent not assignable of type MediaQueryList #973
Closed
Description
export class LayoutComponent implements OnInit, OnDestroy {
private _router: Subscription;
mediaMatcher: MediaQueryList = matchMedia(`(max-width: ${SMALL_WIDTH_BREAKPOINT}px)`);
url: string;
sidePanelOpened;
constructor (
private _element: ElementRef,
private router: Router) {
this.mediaMatcher.addListener(mql => zone.run(() => {
this.mediaMatcher = mql; //i am getting error here Type 'MediaQueryListEvent' is not assignable to type 'MediaQueryList'.
//Property 'onchange' is missing in type 'MediaQueryListEvent'.
}));
}
}
I have upgraded my angular 5.2 to 7.2.0 & "@angular/flex-layout": "^7.0.0-beta.22", typescript version : 3.2.2,, I am getting build error "MediaQueryListEvent" is not assignable of type MediaQueryList. Is this issue exists with current version of flexLayout ?
Metadata
Metadata
Assignees
Labels
No labels