npm run build or ng build --prod in community edition giving below error in admin part
ERROR in node_modules/ng2-ckeditor/ckbutton.directive.d.ts(1,23): error TS2688: Cannot find type definition file for 'ckeditor'.
node_modules/ng2-ckeditor/ckbutton.directive.d.ts(15,25): error TS2503: Cannot find namespace 'CKEDITOR'.
node_modules/ng2-ckeditor/ckbutton.directive.d.ts(23,21): error TS2694: Namespace '"/home/ubuntu/admin/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.
node_modules/ng2-ckeditor/ckbutton.directive.d.ts(24,21): error TS2694: Namespace '"/home/ubuntu/admin/node_modules/@angular/core/core"' has no exported member 'ɵɵDirectiveDeclaration'.
node_modules/ng2-ckeditor/ckeditor.component.d.ts(1,23): error TS2688: Cannot find type definition file for 'ckeditor'.
node_modules/ng2-ckeditor/ckeditor.component.d.ts(13,13): error TS2503: Cannot find namespace 'CKEDITOR'.
node_modules/ng2-ckeditor/ckeditor.component.d.ts(16,26): error TS2503: Cannot find namespace 'CKEDITOR'.
node_modules/ng2-ckeditor/ckeditor.component.d.ts(17,32): error TS2503: Cannot find namespace 'CKEDITOR'.
node_modules/ng2-ckeditor/ckeditor.component.d.ts(18,25): error TS2503: Cannot find namespace 'CKEDITOR'.
node_modules/ng2-ckeditor/ckeditor.component.d.ts(19,24): error TS2503: Cannot find namespace 'CKEDITOR'.
node_modules/ng2-ckeditor/ckeditor.component.d.ts(20,25): error TS2503: Cannot find namespace 'CKEDITOR'.
node_modules/ng2-ckeditor/ckeditor.component.d.ts(21,30): error TS2503: Cannot find namespace 'CKEDITOR'.
node_modules/ng2-ckeditor/ckeditor.component.d.ts(22,37): error TS2503: Cannot find namespace 'CKEDITOR'.
node_modules/ng2-ckeditor/ckeditor.component.d.ts(23,38): error TS2503: Cannot find namespace 'CKEDITOR'.
node_modules/ng2-ckeditor/ckeditor.component.d.ts(24,25): error TS2503: Cannot find namespace 'CKEDITOR'.
node_modules/ng2-ckeditor/ckeditor.component.d.ts(25,24): error TS2503: Cannot find namespace 'CKEDITOR'.
node_modules/ng2-ckeditor/ckeditor.component.d.ts(30,15): error TS2503: Cannot find namespace 'CKEDITOR'.
node_modules/ng2-ckeditor/ckeditor.component.d.ts(37,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/ng2-ckeditor/ckeditor.component.d.ts(38,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/ng2-ckeditor/ckeditor.component.d.ts(59,26): error TS2503: Cannot find namespace 'CKEDITOR'.
node_modules/ng2-ckeditor/ckeditor.component.d.ts(69,21): error TS2694: Namespace '"/home/ubuntu/admin/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.
node_modules/ng2-ckeditor/ckeditor.component.d.ts(70,21): error TS2694: Namespace '"/home/ubuntu/admin/node_modules/@angular/core/core"' has no exported member 'ɵɵComponentDeclaration'.
node_modules/ng2-ckeditor/ckeditor.module.d.ts(10,21): error TS2694: Namespace '"/home/ubuntu/admin/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.
node_modules/ng2-ckeditor/ckeditor.module.d.ts(11,21): error TS2694: Namespace '"/home/ubuntu/admin/node_modules/@angular/core/core"' has no exported member 'ɵɵNgModuleDeclaration'.
node_modules/ng2-ckeditor/ckeditor.module.d.ts(12,21): error TS2694: Namespace '"/home/ubuntu/admin/node_modules/@angular/core/core"' has no exported member 'ɵɵInjectorDeclaration'.
node_modules/ng2-ckeditor/ckgroup.directive.d.ts(22,21): error TS2694: Namespace '"/home/ubuntu/admin/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.
node_modules/ng2-ckeditor/ckgroup.directive.d.ts(23,21): error TS2694: Namespace '"/home/ubuntu/admin/node_modules/@angular/core/core"' has no exported member 'ɵɵDirectiveDeclaration'.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! spurtcommerce@3.0.2 build: ng build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the spurtcommerce@3.0.2 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ubuntu/.npm/_logs/2022-05-13T12_42_11_549Z-debug.log