"**/node_modules/@angular/core/core"' has no exported member 'ɵɵComponentDeclaration'
SharjeelAhmad84 opened this issue · 3 comments
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/autocomplete.component.d.ts:244:21 - error TS2694: Namespace '"/Users/gfmmobiledev/Desktop/GFMProjects/IRPro/irpro/node_modules/@angular/core/core"' has no exported member 'ɵɵComponentDeclaration'.
244 static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteComponent, "ng-autocomplete", never, { "data": "data"; "searchKeyword": "searchKeyword"; "placeholder": "placeholder"; "heading": "heading"; "initialValue": "initialValue"; "historyIdentifier": "historyIdentifier"; "historyHeading": "historyHeading"; "historyListMaxNumber": "historyListMaxNumber"; "notFoundText": "notFoundText"; "isLoading": "isLoading"; "debounceTime": "debounceTime"; "disabled": "disabled"; "minQueryLength": "minQueryLength"; "focusFirst": "focusFirst"; "customFilter": "customFilter"; "selectedValueRender": "selectedValueRender"; "itemTemplate": "itemTemplate"; "notFoundTemplate": "notFoundTemplate"; }, { "selected": "selected"; "inputChanged": "inputChanged"; "inputFocused": "inputFocused"; "inputCleared": "inputCleared"; "opened": "opened"; "closed": "closed"; "scrolledToEnd": "scrolledToEnd"; }, ["customTemplate"], 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/highlight.pipe.d.ts:6:22 - error TS2694: Namespace '"/Users/gfmmobiledev/Desktop/GFMProjects/IRPro/irpro/node_modules/@angular/core/core"' has no exported member 'ɵɵPipeDeclaration'.
6 static ɵpipe: i0.ɵɵPipeDeclaration<HighlightPipe, "highlight">;
~~~~~~~~~~~~~~~~~
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:8:21 - error TS2694: Namespace '"/Users/gfmmobiledev/Desktop/GFMProjects/IRPro/irpro/node_modules/@angular/core/core"' has no exported member 'ɵɵNgModuleDeclaration'.
8 static ɵmod: i0.ɵɵNgModuleDeclaration<AutocompleteLibModule, [typeof i1.AutocompleteComponent, typeof i2.HighlightPipe], [typeof i3.CommonModule, typeof i4.FormsModule], [typeof i1.AutocompleteComponent, typeof i2.HighlightPipe]>;
~~~~~~~~~~~~~~~~~~~~~
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.
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
#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