DEV Community

drumilk-dev
drumilk-dev

Posted on

NGH-Capthca buid issue

I am facing following issue in the build after implementing ngh captcha

[ERROR] ERROR in ../node_modules/ng-hcaptcha/lib/ng-hcaptcha.component.d.ts:47:21 - error TS2694: Namespace '"C:/Users/dkhedkar/GITProjs/15522/firstdata-global-aem/fd-frontend/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.
[INFO] Date: 2022-05-16T04:43:56.391Z - Hash: 6b80a8b9ee6acb13db40 - Time: 14477ms
[ERROR]
[ERROR] 47 static ɵfac: i0.ɵɵFactoryDeclaration;
[ERROR] ~~~~~~~~
[ERROR] ../node_modules/ng-hcaptcha/lib/ng-hcaptcha.component.d.ts:48:21 - error TS2694: Namespace '"C:/Users/dkhedkar/GITProjs/15522/firstdata-global-aem/fd-frontend/node_modules/@angular/core/core"' has no exported member 'ɵɵComponentDeclaration'.
[ERROR]
[ERROR] 48 static ɵcmp: i0.ɵɵComponentDeclaration;
[ERROR] ~~~~~~~~~~
[ERROR] ../node_modules/ng-hcaptcha/lib/ng-hcaptcha-invisible-button.directive.d.ts:38:21 - error TS2694: Namespace '"C:/Users/dkhedkar/GITProjs/15522/firstdata-global-aem/fd-frontend/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.
[ERROR]
[ERROR] 38 static ɵfac: i0.ɵɵFactoryDeclaration;
[ERROR] ~~~~~~~~
[ERROR] ../node_modules/ng-hcaptcha/lib/ng-hcaptcha-invisible-button.directive.d.ts:39:21 - error TS2694: Namespace '"C:/Users/dkhedkar/GITProjs/15522/firstdata-global-aem/fd-frontend/node_modules/@angular/core/core"' has no exported member 'ɵɵDirectiveDeclaration'.
[ERROR]
[ERROR] 39 static ɵdir: i0.ɵɵDirectiveDeclaration;
[ERROR] ~~~~~~~~
[ERROR] ../node_modules/ng-hcaptcha/lib/ng-hcaptcha.service.d.ts:11:21 - error TS2694: Namespace '"C:/Users/dkhedkar/GITProjs/15522/firstdata-global-aem/fd-frontend/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.
[ERROR]
[ERROR] 11 static ɵfac: i0.ɵɵFactoryDeclaration;
[ERROR] ~~
~~~~
[ERROR] ../node_modules/ng-hcaptcha/lib/ng-hcaptcha.service.d.ts:12:22 - error TS2694: Namespace '"C:/Users/dkhedkar/GITProjs/15522/firstdata-global-aem/fd-frontend/node_modules/@angular/core/core"' has no exported member 'ɵɵInjectableDeclaration'.
[ERROR]
[ERROR] 12 static ɵprov: i0.ɵɵInjectableDeclaration;
[ERROR] ~~~~~~~~~~~
[ERROR] ../node_modules/ng-hcaptcha/lib/ng-hcaptcha.module.d.ts:8:21 - error TS2694: Namespace '"C:/Users/dkhedkar/GITProjs/15522/firstdata-global-aem/fd-frontend/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.
[ERROR]
[ERROR] 8 static ɵfac: i0.ɵɵFactoryDeclaration;
[ERROR] ~~~~~~~~
[ERROR] ../node_modules/ng-hcaptcha/lib/ng-hcaptcha.module.d.ts:9:21 - error TS2694: Namespace '"C:/Users/dkhedkar/GITProjs/15522/firstdata-global-aem/fd-frontend/node_modules/@angular/core/core"' has no exported member 'ɵɵNgModuleDeclaration'.
[ERROR]
[ERROR] 9 static ɵmod: i0.ɵɵNgModuleDeclaration;
[ERROR] ~~~~~~~
[ERROR] ../node_modules/ng-hcaptcha/lib/ng-hcaptcha.module.d.ts:10:21 - error TS2694: Namespace '"C:/Users/dkhedkar/GITProjs/15522/firstdata-global-aem/fd-frontend/node_modules/@angular/core/core"' has no exported member 'ɵɵInjectorDeclaration'.
[ERROR]
[ERROR] 10 static ɵinj: i0.ɵɵInjectorDeclaration;
[ERROR] ~~
~~~~~
[ERROR]
[ERROR] npm ERR! code ELIFECYCLE
[ERROR] npm ERR! errno 1
[ERROR] npm ERR! aem-maven-archetype@1.0.0 prod: webpack -p --config ./webpack.prod.js && clientlib --verbose && cd fd-forms && ng build --prod && clientlib --verbose
[ERROR] npm ERR! Exit status 1
[ERROR] npm ERR!
[ERROR] npm ERR! Failed at the aem-maven-archetype@1.0.0 prod script.
[ERROR] npm ERR! This is probably not a problem with npm. There is likely additional logging out

Please do let me know where it is going wrong.

Thanks

Top comments (0)