Open Closed

Angular cannot compile and run #3776


User avatar
0
chenxm created
  • ABP Framework version: v6.0.0-rc.5
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

microservice template: Occurs on mac os and windows platforms

Error: node_modules/@volo/abp.ng.account/public/components/profile-picture/profile-picture.component.d.ts:30:18 - error TS2314: Generic type 'ɵɵComponentDeclaration' requires 7 type argument(s).

30     static ɵcmp: i0.ɵɵComponentDeclaration<ProfilePictureComponent, "abp-profile-picture", never, {}, {}, never, never, false>;
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Error: node_modules/@volo/abp.ng.account/public/components/register/register.component.d.ts:4:10 - error TS2305: Module '"@angular/forms"' has no exported member 'UntypedFormBuilder'.

4 import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
           ~~~~~~~~~~~~~~~~~~


Error: node_modules/@volo/abp.ng.account/public/components/register/register.component.d.ts:4:30 - error TS2305: Module '"@angular/forms"' has no exported member 'UntypedFormGroup'.

4 import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
                               ~~~~~~~~~~~~~~~~


Error: node_modules/@volo/abp.ng.account/public/components/register/register.component.d.ts:25:18 - error TS2314: Generic type 'ɵɵComponentDeclaration' requires 7 type argument(s).

25     static ɵcmp: i0.ɵɵComponentDeclaration<RegisterComponent, "abp-register", never, {}, {}, never, never, false>;
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Error: node_modules/@volo/abp.ng.account/public/components/reset-password/reset-password.component.d.ts:2:10 - error TS2305: Module '"@angular/forms"' has no exported member 'UntypedFormBuilder'.

2 import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
           ~~~~~~~~~~~~~~~~~~


Error: node_modules/@volo/abp.ng.account/public/components/reset-password/reset-password.component.d.ts:2:30 - error TS2305: Module '"@angular/forms"' has no exported member 'UntypedFormGroup'.

2 import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
                               ~~~~~~~~~~~~~~~~


Error: node_modules/@volo/abp.ng.account/public/components/reset-password/reset-password.component.d.ts:21:18 - error TS2314: Generic type 'ɵɵComponentDeclaration' requires 7 type argument(s).

21     static ɵcmp: i0.ɵɵComponentDeclaration<ResetPasswordComponent, "abp-reset-password", never, {}, {}, never, never, false>;
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Error: node_modules/@volo/abp.ng.account/public/components/send-securiy-code/send-security-code.component.d.ts:2:10 - error TS2305: Module '"@angular/forms"' has no exported member 'UntypedFormBuilder'.

2 import { UntypedFormBuilder } from '@angular/forms';
           ~~~~~~~~~~~~~~~~~~


Error: node_modules/@volo/abp.ng.account/public/components/send-securiy-code/send-security-code.component.d.ts:14:40 - error TS2694: Namespace '"C:/Users/\u4E2D\u80B2\u79D1\u6559/projects/abp-vnext/6.0.0-rc.5/PlatCloud/apps/angular/node_modules/@angular/forms/forms"' has no exported member 'UntypedFormGroup'.

14     codeForm: import("@angular/forms").UntypedFormGroup;
                                          ~~~~~~~~~~~~~~~~


Error: node_modules/@volo/abp.ng.account/public/components/send-securiy-code/send-security-code.component.d.ts:21:18 - error TS2314: Generic type 'ɵɵComponentDeclaration' requires 7 type argument(s).

21     static ɵcmp: i0.ɵɵComponentDeclaration<SendSecurityCodeComponent, "abp-send-security-code", never, {}, {}, never, never, false>;
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Error: node_modules/@volo/abp.ng.account/public/components/two-factor-tab/two-factor-tab.component.d.ts:16:3m18 - error TS2314: Generic type 'ɵɵComponentDeclaration' requires 7 type argument(s).

16     static ɵcmp: i0.ɵɵComponentDeclaration<TwoFactorTabComponent, "abp-two-factor-tab", never, {}, {}, never, never, false>;
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Error: node_modules/@volo/abp.ng.audit-logging/config/components/entity-change-details.component.d.ts:18:18 - error TS2314: Generic type 'ɵɵComponentDeclaration' requires 7 type argument(s).

18     static ɵcmp: i0.ɵɵComponentDeclaration<EntityChangeDetailsComponent, "abp-entity-change-details", never, { "itemWithUserName": "itemWithUserName"; "isCollapsed": "isCollapsed"; }, {}, never, never, false>;
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Error: node_modules/@volo/abp.ng.audit-logging/config/components/entity-change-modal.component.d.ts:14:18 - error TS2314: Generic type 'ɵɵComponentDeclaration' requires 7 type argument(s).

14     static ɵcmp: i0.ɵɵComponentDeclaration<EntityChangeModalComponent, "abp-entity-change-modal", never, {}, {}, never, never, false>;
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Error: node_modules/@volo/abp.ng.audit-logging/lib/components/audit-logs/audit-logs.component.d.ts:3:10 - error TS2305: Module '"@angular/forms"' has no exported member 'UntypedFormGroup'.

3 import { UntypedFormGroup } from '@angular/forms';
           ~~~~~~~~~~~~~~~~


Error: node_modules/@volo/abp.ng.audit-logging/lib/components/audit-logs/audit-logs.component.d.ts:31:18 - error TS2314: Generic type 'ɵɵComponentDeclaration' requires 7 type argument(s).

31     static ɵcmp: i0.ɵɵComponentDeclaration<AuditLogsComponent, "abp-audit-logs", never, {}, {}, never, never, false>;                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Error: node_modules/@volo/abp.ng.audit-logging/lib/components/entity-change/entity-changes.component.d.ts:3:10 - error TS2305: Module '"@angular/forms"' has no exported member 'UntypedFormBuilder'.

3 import { UntypedFormBuilder } from '@angular/forms';
           ~~~~~~~~~~~~~~~~~~


Error: node_modules/@volo/abp.ng.audit-logging/lib/components/entity-change/entity-changes.component.d.ts:11:36 - error TS2694: Namespace '"C:/Users/\u4E2D\u80B2\u79D1\u6559/projects/abp-vnext/6.0.0-rc.5/PlatCloud/apps/angular/node_modules/@angular/forms/forms"' has no exported member 'UntypedFormGroup'.

11     form: import("@angular/forms").UntypedFormGroup;
                                      ~~~~~~~~~~~~~~~~


Error: node_modules/@volo/abp.ng.audit-logging/lib/components/entity-change/entity-changes.component.d.ts:22:18 - error TS2314: Generic type 'ɵɵComponentDeclaration' requires 7 type argument(s).

22     static ɵcmp: i0.ɵɵComponentDeclaration<EntityChangesComponent, "abp-entity-changes", never, {}, {}, never, never, false>;
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


1mError: node_modules/@volo/abp.ng.audit-logging/lib/components/widgets/average-execution-duration-widget.component.d.ts:24:18 - error TS2314: Generic type 'ɵɵComponentDeclaration' requires 7 type argument(s).

24     static ɵcmp: i0.ɵɵComponentDeclaration<AverageExecutionDurationWidgetComponent, "abp-average-execution-duration-widget", never, { "width": "width"; "height": "height"; }, { "initialized": "initialized"; }, never, never, false>;
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Error: node_modules/@volo/abp.ng.audit-logging/lib/components/widgets/error-rate-widget.component.d.ts:23:18 - error TS2314: Generic type 'ɵɵComponentDeclaration' requires 7 type argument(s).

23     static ɵcmp: i0.ɵɵComponentDeclaration<ErrorRateWidgetComponent, "abp-error-rate-widget", never, { "width": "width"; "height": "height"; }, { "initialized": "initialized"; }, never, never, false>;
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Error: node_modules/@volo/abp.ng.identity/config/components/identity-setting-tabs/identity-external-login-settings.component.d.ts:4:10 - error TS2305: Module '"@angular/forms"' has no exported member 'UntypedFormBuilder'.

4 import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
           ~~~~~~~~~~~~~~~~~~


Error: node_modules/@volo/abp.ng.identity/config/components/identity-setting-tabs/identity-external-login-settings.component.d.ts:4:30 - error TS2305: Module '"@angular/forms"' has no exported member 'UntypedFormGroup'.

4 import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
                               ~~~~~~~~~~~~~~~~


Error: node_modules/@volo/abp.ng.identity/config/components/identity-setting-tabs/identity-external-login-settings.component.d.ts:19:18 - error TS2314: Generic type 'ɵɵComponentDeclaration' requires 7 type argument(s).

19     static ɵcmp: i0.ɵɵComponentDeclaration<IdentityExternalLoginSettingsComponent, "abp-external-login-settings", never, {}, {}, never, never, false>;
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Error: node_modules/@volo/abp.ng.identity/config/components/identity-setting-tabs/identity-ldap-settings.component.d.ts:16:18 - error TS2314: Generic type 'ɵɵComponentDeclaration' requires 7 type argument(s).

16     static ɵcmp: i0.ɵɵComponentDeclaration<IdentityLdapSettingsComponent, "abp-ldap-login-settings", never, {}, {}, never, never, false>;
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Error: node_modules/@volo/abp.ng.identity/config/components/identity-setting-tabs/identity-setting.component.d.ts:3:10 - error TS2305: Module '"@angular/forms"' has no exported member 'UntypedFormBuilder'.

3 import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
           ~~~~~~~~~~~~~~~~~~


Error: node_modules/@volo/abp.ng.identity/config/components/identity-setting-tabs/identity-setting.component.d.ts:3:30 - error TS2305: Module '"@angular/forms"' has no exported member 'UntypedFormGroup'.

3 import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
                               ~~~~~~~~~~~~~~~~


Error: node_modules/@volo/abp.ng.identity/config/components/identity-setting-tabs/identity-setting.component.d.ts:24:18 - error TS2314: Generic type 'ɵɵComponentDeclaration' requires 7 type argument(s).

24     static ɵcmp: i0.ɵɵComponentDeclaration<IdentitySettingComponent, "abp-identity-setting", never, {}, {}, never, never, false>;
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Error: node_modules/@volo/abp.ng.identity/config/components/identity-settings.component.d.ts:11:18 - error TS2314: Generic type 'ɵɵComponentDeclaration' requires 7 type argument(s).

2 Answer(s)
  • User Avatar
    0
    muhammedaltug created

    Hello,

    We upgraded the angular version to 14 in 6.0.0-rc.5 version. Please update your angular version

  • User Avatar
    0
    chenxm created

    thank you.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09