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

ng serve getting error, angular/core/core"' has no exported member 'ɵɵDirectiveDeclaration' #79

Open
hexastich opened this issue Jul 27, 2023 · 4 comments

Comments

@hexastich
Copy link

hexastich commented Jul 27, 2023

GitHub: main branch
node_modules/angular-file/file-upload/ngfUploadStatus.directive.d.ts:9:21 - error TS2694: Namespace '"F:/IdeaProjects/shopizer-admin/node_modules/@angular/core/core"' has no exported member 'ɵɵDirectiveDeclaration'.

9 static ɵdir: i0.ɵɵDirectiveDeclaration<ngfUploadStatus, "ngfUploadStatus", never, { "percent": "percent"; "httpEvent": "httpEvent"; }, { "percentChange": "percentChange"; }, never>;****

@abhishekamt0645
Copy link

I had the same issue. I removed the node_modules directory and install the dependencies using npm i --legacy-peer-deps.
Kept the node version as 12.22.12 and angular cli version as 13.3.11. This resolved the issue.
Hope it helps!

@sule985
Copy link

sule985 commented Jun 25, 2024

I ran into another issue after fixed this issue above:
ng version
Angular CLI: 13.3.11
Node: 12.22.12
Package Manager: npm 6.14.16
OS: linux x64

But there's no output after run ng build
root@a12-docker:/shopizer-codes/shopizer-admin# ng build
root@a12-docker:
/shopizer-codes/shopizer-admin#

Same as when I run ng serve
I have tried to reinstall Angular CLI, delete node_modules several times, but all failed.

@toneyyq
Copy link

toneyyq commented Jul 7, 2024

The problem is that the "angel-file": "^ 3.1.2" of package.json should use "angel-file": "3.1.2"

@llv8
Copy link

llv8 commented Nov 1, 2024

The problem is that the "angel-file": "^ 3.1.2" of package.json should use "angel-file": "3.1.2"

resolved my issue

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

5 participants