Open hexastich opened 1 year ago
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!
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.
The problem is that the "angel-file": "^ 3.1.2" of package.json should use "angel-file": "3.1.2"
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>;****