EasyUI Forum

General Category => EasyUI for Angular => Topic started by: harunrv on May 06, 2022, 03:22:02 AM



Title: error on LazyLoadModule
Post by: harunrv on May 06, 2022, 03:22:02 AM
ERROR Error: Uncaught (in promise): Error: BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.
Error: BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.


Angular CLI: 13.3.5
Node: 16.15.0
Package Manager: npm 8.5.5


Title: Re: error on LazyLoadModule
Post by: jarry on May 07, 2022, 07:49:11 AM
This issue has been fixed. Please update to the newest version.


Title: Re: error on LazyLoadModule
Post by: harunrv on May 07, 2022, 08:33:13 AM
now another error occurs

Compiled with problems:X

ERROR in ./node_modules/ng-easyui/fesm2015/ng-easyui.js 3245:47-78

export 'ɵangular_packages_forms_forms_z' (imported as 'ɵangular_packages_forms_forms_z') was not found in '@angular/forms' (possible exports: AbstractControl, AbstractControlDirective, AbstractFormGroupDirective, COMPOSITION_BUFFER_MODE, CheckboxControlValueAccessor, CheckboxRequiredValidator, ControlContainer, DefaultValueAccessor, EmailValidator, FormArray, FormArrayName, FormBuilder, FormControl, FormControlDirective, FormControlName, FormGroup, FormGroupDirective, FormGroupName, FormsModule, MaxLengthValidator, MaxValidator, MinLengthValidator, MinValidator, NG_ASYNC_VALIDATORS, NG_VALIDATORS, NG_VALUE_ACCESSOR, NgControl, NgControlStatus, NgControlStatusGroup, NgForm, NgModel, NgModelGroup, NgSelectOption, NumberValueAccessor, PatternValidator, RadioControlValueAccessor, RangeValueAccessor, ReactiveFormsModule, RequiredValidator, SelectControlValueAccessor, SelectMultipleControlValueAccessor, VERSION, Validators, ɵInternalFormsSharedModule, ɵNgNoValidate, ɵNgSelectMultipleOption)


ERROR

node_modules/ng-easyui/lib/accordion/accordion-panel.component.d.ts:31:21 - error TS2694: Namespace '"C:/DEV/PRJ/Angular/test05/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDef'.

31     static ɵfac: i0.ɵɵFactoryDef<AccordionPanelComponent, [{ host: true; }, null]>;
                       ~~~~~~~~~~~~


............
............
............



ERROR

node_modules/ng-easyui/lib/treegrid/treegrid.module.d.ts:15:21 - error TS2694: Namespace '"C:/DEV/PRJ/Angular/test05/node_modules/@angular/core/core"' has no exported member 'ɵɵNgModuleDefWithMeta'.

15     static ɵmod: i0.ɵɵNgModuleDefWithMeta<TreeGridModule, [typeof i1.TreeGridComponent, typeof i2.TreeGridBodyComponent, typeof i3.TreeGridViewComponent, typeof i4.TreeGridRowComponent, typeof i5.TreeGridChildrenComponent, typeof i6.TreeGridEditTemplateDirective], [typeof i7.CommonModule, typeof i8.FormsModule, typeof i9.BaseModule, typeof i10.GridBaseModule, typeof i11.PaginationModule], [typeof i1.TreeGridComponent, typeof i2.TreeGridBodyComponent, typeof i3.TreeGridViewComponent, typeof i4.TreeGridRowComponent, typeof i5.TreeGridChildrenComponent, typeof i6.TreeGridEditTemplateDirective]>;
                       ~~~~~~~~~~~~~~~~~~~~~






Title: Re: error on LazyLoadModule
Post by: jarry on May 09, 2022, 01:59:01 AM
The library is built with angular 11. Please try to use a lower angular version.


Title: Re: error on LazyLoadModule
Post by: harunrv on May 10, 2022, 04:22:43 AM
it woks. thank you