Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"**/node_modules/@angular/core/core"' has no exported member 'ɵɵComponentDeclaration' #191

Open
SharjeelAhmad84 opened this issue Apr 11, 2022 · 3 comments

Comments

@SharjeelAhmad84
Copy link

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.

@SharjeelAhmad84 SharjeelAhmad84 changed the title "/Users/gfmmobiledev/Desktop/GFMProjects/IRPro/irpro/node_modules/@angular/core/core"' has no exported member 'ɵɵComponentDeclaration' "**/node_modules/@angular/core/core"' has no exported member 'ɵɵComponentDeclaration' Apr 11, 2022
@4lenz1
Copy link

4lenz1 commented Apr 19, 2022

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

@bmlong137
Copy link

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

@srkamine
Copy link

srkamine commented Mar 6, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants