Open SharjeelAhmad84 opened 2 years ago
I'm using Angular 10 and got same problem when I import module, you might change version to 2.0.7 or 2.0.8 I think hope it helps :D https://github.com/gmerabishvili/angular-ng-autocomplete/issues/184
I came here to log the same issue. There should probably be a peer dependency that requires some @angular/core version greater than "*". I don't know if it starts failing on v11, v12, or anything less than the v13 it is built against. But:
v1.0.7 works on Angular v10 v1.0.8 does not work on Angular v10
we r having same issue with our build . dev we are using 2.0.7 version with angular 12 and it is working but when we try to migrate to stage it is not working .. giving same errors. any clues
Error: node_modules/angular-ng-autocomplete/lib/autocomplete.component.d.ts:243:21 - error TS2694: Namespace '"/Users/gfmmobiledev/Desktop/GFMProjects/IRPro/irpro/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.
243 static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteComponent, never>;
node_modules/angular-ng-autocomplete/lib/highlight.pipe.d.ts:5:21 - error TS2694: Namespace '"/Users/gfmmobiledev/Desktop/GFMProjects/IRPro/irpro/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.
5 static ɵfac: i0.ɵɵFactoryDeclaration<HighlightPipe, never>;
node_modules/angular-ng-autocomplete/lib/autocomplete-lib.module.d.ts:7:21 - error TS2694: Namespace '"/Users/gfmmobiledev/Desktop/GFMProjects/IRPro/irpro/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.
7 static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteLibModule, never>;
node_modules/angular-ng-autocomplete/lib/autocomplete-lib.module.d.ts:9:21 - error TS2694: Namespace '"/Users/gfmmobiledev/Desktop/GFMProjects/IRPro/irpro/node_modules/@angular/core/core"' has no exported member 'ɵɵInjectorDeclaration'.
9 static ɵinj: i0.ɵɵInjectorDeclaration;
I get this issue when I try to import this. import {AutocompleteLibModule} from 'angular-ng-autocomplete';
I am using anguler version 11.