मैं एक कोणीय ऐप में फ्लेक्स-लेआउट को जोड़ने की कोशिश कर रहा हूं, लेकिन जब मैं करता हूं और इसका उपयोग करने की कोशिश करता हूं तो ऐप टूट जाता है। मैंने स्थापित किया है
npm i @angular/flex-layout @angular/cdk
फिर app.module.ts में आयात किया गया
import { FlexLayoutModule } from '@angular/flex-layout';
import [ FlexLayoutModule ]
मैंने नवीनतम में टाइपस्क्रिप्ट को भी अपग्रेड किया है
npm i typescript@latest
लेकिन जब एप्लिकेशन संकलन करने की कोशिश करता है, तो मुझे सभी प्रकार की त्रुटियां मिलती हैं:
ERROR in node_modules/@angular/flex-layout/core/typings/base/base2.d.ts:24:19 - error TS1086: An accessor cannot be declared in an ambient context.
24 protected get parentElement(): HTMLElement | null;
~~~~~~~~~~~~~
node_modules/@angular/flex-layout/core/typings/base/base2.d.ts:26:19 - error TS1086: An accessor cannot be declared in an ambient context.
26 protected get nativeElement(): HTMLElement;
~~~~~~~~~~~~~
node_modules/@angular/flex-layout/core/typings/base/base2.d.ts:28:9 - error TS1086: An accessor cannot be declared in an ambient context.
28 get activatedValue(): string;
~~~~~~~~~~~~~~
node_modules/@angular/flex-layout/core/typings/base/base2.d.ts:29:9 - error TS1086: An accessor cannot be declared in an ambient context.
29 set activatedValue(value: string);
~~~~~~~~~~~~~~
node_modules/@angular/flex-layout/core/typings/breakpoints/break-point-registry.d.ts:20:9 - error TS1086: An accessor cannot be declared in an ambient context.
20 get overlappings(): BreakPoint[];
~~~~~~~~~~~~
node_modules/@angular/flex-layout/core/typings/breakpoints/break-point-registry.d.ts:24:9 - error TS1086: An accessor cannot be declared in an ambient context.
और सूची खत्म ही नहीं होती। क्या मेरे पास किसी चीज़ का संस्करण बेमेल है?
धन्यवाद.....