Open Closed

Cannot Build Angular App #225


User avatar
0
michal.fila@coats.com created

Hello,

since Friday (05/06) we're not able to build Angular application anymore. Using the same source code and the same build machine, our CI pipeline fails. Could you tell me what the issue is?

Version: 2.6.2 UI: Angular

Exception: ` ERROR in node_modules/@volo/abp.ng.identity.config/lib/tokens/extensions.token.d.ts:2:41 - error TS2305: Module '"../../../abp.ng.identity/volo-abp.ng.identity"' has no exported member 'OrganizationUnitWithDetailsDto'.

2 import { eIdentityComponents, Identity, OrganizationUnitWithDetailsDto } from '@volo/abp.ng.identity'; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/@volo/abp.ng.identity.config/lib/tokens/extensions.token.d.ts:7:5 - error TS1170: A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type.

7 [eIdentityComponents.OrganizationMembers]: import("@volo/abp.commercial.ng.ui").EntityAction<Identity.UserItem>[]; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/@volo/abp.ng.identity.config/lib/tokens/extensions.token.d.ts:7:26 - error TS2339: Property 'OrganizationMembers' does not exist on type 'typeof eIdentityComponents'.

7 [eIdentityComponents.OrganizationMembers]: import("@volo/abp.commercial.ng.ui").EntityAction<Identity.UserItem>[]; ~~~~~~~~~~~~~~~~~~~ node_modules/@volo/abp.ng.identity.config/lib/tokens/extensions.token.d.ts:8:5 - error TS1170: A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type.

8 [eIdentityComponents.OrganizationRoles]: import("@volo/abp.commercial.ng.ui").EntityAction<Identity.RoleItem>[]; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/@volo/abp.ng.identity.config/lib/tokens/extensions.token.d.ts:8:26 - error TS2339: Property 'OrganizationRoles' does not exist on type 'typeof eIdentityComponents'.

8 [eIdentityComponents.OrganizationRoles]: import("@volo/abp.commercial.ng.ui").EntityAction<Identity.RoleItem>[]; ~~~~~~~~~~~~~~~~~ node_modules/@volo/abp.ng.identity.config/lib/tokens/extensions.token.d.ts:14:5 - error TS1170: A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type.

14 [eIdentityComponents.OrganizationUnits]: import("@volo/abp.commercial.ng.ui").ToolbarAction<OrganizationUnitWithDetailsDto[]>[]; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/@volo/abp.ng.identity.config/lib/tokens/extensions.token.d.ts:14:26 - error TS2339: Property 'OrganizationUnits' does not exist on type 'typeof eIdentityComponents'.

14 [eIdentityComponents.OrganizationUnits]: import("@volo/abp.commercial.ng.ui").ToolbarAction<OrganizationUnitWithDetailsDto[]>[]; ~~~~~~~~~~~~~~~~~ node_modules/@volo/abp.ng.identity.config/lib/tokens/extensions.token.d.ts:20:5 - error TS1170: A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type.

20 [eIdentityComponents.OrganizationMembers]: import("@volo/abp.commercial.ng.ui").EntityProp<Identity.UserItem>[]; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/@volo/abp.ng.identity.config/lib/tokens/extensions.token.d.ts:20:26 - error TS2339: Property 'OrganizationMembers' does not exist on type 'typeof eIdentityComponents'.

20 [eIdentityComponents.OrganizationMembers]: import("@volo/abp.commercial.ng.ui").EntityProp<Identity.UserItem>[]; ~~~~~~~~~~~~~~~~~~~ node_modules/@volo/abp.ng.identity.config/lib/tokens/extensions.token.d.ts:21:5 - error TS1170: A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type.

21 [eIdentityComponents.OrganizationRoles]: import("@volo/abp.commercial.ng.ui").EntityProp<Identity.RoleItem>[]; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/@volo/abp.ng.identity.config/lib/tokens/extensions.token.d.ts:21:26 - error TS2339: Property 'OrganizationRoles' does not exist on type 'typeof eIdentityComponents'.

21 [eIdentityComponents.OrganizationRoles]: import("@volo/abp.commercial.ng.ui").EntityProp<Identity.RoleItem>[]; ~~~~~~~~~~~~~~~~~ node_modules/@volo/abp.ng.identity.config/lib/tokens/extensions.token.d.ts:37:5 - error TS1170: A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type.

37 [eIdentityComponents.OrganizationMembers]: import("@volo/abp.commercial.ng.ui/lib/models/actions").ActionContributorCallback<import("@volo/abp.commercial.ng.ui").EntityActionList<Identity.UserItem>>[]; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/@volo/abp.ng.identity.config/lib/tokens/extensions.token.d.ts:37:26 - error TS2339: Property 'OrganizationMembers' does not exist on type 'typeof eIdentityComponents'.

37 [eIdentityComponents.OrganizationMembers]: import("@volo/abp.commercial.ng.ui/lib/models/actions").ActionContributorCallback<import("@volo/abp.commercial.ng.ui").EntityActionList<Identity.UserItem>>[]; ~~~~~~~~~~~~~~~~~~~ node_modules/@volo/abp.ng.identity.config/lib/tokens/extensions.token.d.ts:38:5 - error TS1170: A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type.

38 [eIdentityComponents.OrganizationRoles]: import("@volo/abp.commercial.ng.ui/lib/models/actions").ActionContributorCallback<import("@volo/abp.commercial.ng.ui").EntityActionList<Identity.RoleItem>>[]; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/@volo/abp.ng.identity.config/lib/tokens/extensions.token.d.ts:38:26 - error TS2339: Property 'OrganizationRoles' does not exist on type 'typeof eIdentityComponents'.

38 [eIdentityComponents.OrganizationRoles]: import("@volo/abp.commercial.ng.ui/lib/models/actions").ActionContributorCallback<import("@volo/abp.commercial.ng.ui").EntityActionList<Identity.RoleItem>>[]; ~~~~~~~~~~~~~~~~~ node_modules/@volo/abp.ng.identity.config/lib/tokens/extensions.token.d.ts:44:5 - error TS1170: A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type.

44 [eIdentityComponents.OrganizationUnits]: import("@volo/abp.commercial.ng.ui/lib/models/actions").ActionContributorCallback<import("@volo/abp.commercial.ng.ui").ToolbarActionList<OrganizationUnitWithDetailsDto[]>>[]; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/@volo/abp.ng.identity.config/lib/tokens/extensions.token.d.ts:44:26 - error TS2339: Property 'OrganizationUnits' does not exist on type 'typeof eIdentityComponents'.

44 [eIdentityComponents.OrganizationUnits]: import("@volo/abp.commercial.ng.ui/lib/models/actions").ActionContributorCallback<import("@volo/abp.commercial.ng.ui").ToolbarActionList<OrganizationUnitWithDetailsDto[]>>[]; ~~~~~~~~~~~~~~~~~ node_modules/@volo/abp.ng.identity.config/lib/tokens/extensions.token.d.ts:50:5 - error TS1170: A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type.

50 [eIdentityComponents.OrganizationMembers]: import("@volo/abp.commercial.ng.ui/lib/models/props").PropContributorCallback<import("@volo/abp.commercial.ng.ui").EntityPropList<Identity.UserItem>>[]; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/@volo/abp.ng.identity.config/lib/tokens/extensions.token.d.ts:50:26 - error TS2339: Property 'OrganizationMembers' does not exist on type 'typeof eIdentityComponents'.

50 [eIdentityComponents.OrganizationMembers]: import("@volo/abp.commercial.ng.ui/lib/models/props").PropContributorCallback<import("@volo/abp.commercial.ng.ui").EntityPropList<Identity.UserItem>>[]; ~~~~~~~~~~~~~~~~~~~ node_modules/@volo/abp.ng.identity.config/lib/tokens/extensions.token.d.ts:51:5 - error TS1170: A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type.

51 [eIdentityComponents.OrganizationRoles]: import("@volo/abp.commercial.ng.ui/lib/models/props").PropContributorCallback<import("@volo/abp.commercial.ng.ui").EntityPropList<Identity.RoleItem>>[]; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/@volo/abp.ng.identity.config/lib/tokens/extensions.token.d.ts:51:26 - error TS2339: Property 'OrganizationRoles' does not exist on type 'typeof eIdentityComponents'.

51 [eIdentityComponents.OrganizationRoles]: import("@volo/abp.commercial.ng.ui/lib/models/props").PropContributorCallback<import("@volo/abp.commercial.ng.ui").EntityPropList<Identity.RoleItem>>[]; `


1 Answer(s)
  • User Avatar
    0
    Mehmet created

    Hi,

    If you are upgrade the ABP version to v2.9.0, this problems will be resolved.

    If you still want to use v2.6.2, update the package.json as shown below:

    "dependencies": {
        "@volo/abp.ng.account": "~2.6.2",
        "@volo/abp.ng.audit-logging": "~2.6.2",
        "@volo/abp.ng.identity": "~2.6.2",
        "@volo/abp.ng.identity-server": "~2.6.2",
        "@volo/abp.ng.language-management": "~2.6.2",
        "@volo/abp.ng.saas": "~2.6.2",
        "@volo/abp.ng.theme.lepton": "~2.6.2",
    },
    "resolutions": {
        "@volo/abp.commercial.ng.ui": "2.6.2",
        "@volo/abp.ng.account.config": "2.6.2",
        "@volo/abp.ng.audit-logging.config": "2.6.2",
        "@volo/abp.ng.identity-server.config": "2.6.2",
        "@volo/abp.ng.identity.config": "2.6.2",
        "@volo/abp.ng.language-management.config": "2.6.2",
        "@volo/abp.ng.saas.config": "2.6.2",
      }
    

    Then, run the yarn command.

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