Open Closed

ABP Suite does not generate Angular UI #7931


User avatar
0
onder created
  • ABP Framework version: v8.2.1
  • UI Type: Angular
  • Database System: EF Core (PostgreSQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Hello,

I was trying to add Currencies table(Id-guid, Name-string) by using abp suite Before generation, I applied service proxy generation by executing "abp generate-proxy -t ng" After I generate, I see that the migration is successfull on page, I checked the back-end project and database side it corrects, but in angular side, there is no changes When I looked for suite logs, I realised the error part(Unexpected token 'for'), I couldn't analyzed it, I've shared below


6 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    I guess this is may related to your Entity field name, could you share your Entity definition

  • User Avatar
    0
    onder created

    FileName is Currency.json

    {
      "Id": "9556cd56-a4f3-4874-b13d-56024dec9f39",
      "Name": "Currency",
      "OriginalName": "Currency",
      "NamePlural": "Currencies",
      "DatabaseTableName": "Currencies",
      "Namespace": "Currencies",
      "Type": 1,
      "MasterEntityName": null,
      "MasterEntity": null,
      "BaseClass": "FullAuditedAggregateRoot",
      "PageTitle": "Currencies",
      "MenuIcon": "file-alt",
      "PrimaryKeyType": "Guid",
      "PreserveCustomCode": false,
      "IsMultiTenant": false,
      "CheckConcurrency": true,
      "BulkDeleteEnabled": true,
      "ShouldCreateUserInterface": true,
      "ShouldCreateBackend": true,
      "ShouldExportExcel": true,
      "ShouldAddMigration": true,
      "ShouldUpdateDatabase": true,
      "CreateTests": false,
      "Properties": [
        {
          "Id": "ea05d629-e5c0-439e-889d-ceaeb6cd172c",
          "Name": "Name",
          "Type": "string",
          "EnumType": "",
          "EnumNamespace": "",
          "EnumAngularImport": "shared/enums",
          "EnumFilePath": null,
          "DefaultValue": null,
          "IsNullable": false,
          "IsRequired": false,
          "IsFilterable": true,
          "AllowEmptyStrings": false,
          "IsTextArea": false,
          "MinLength": null,
          "MaxLength": null,
          "SortOrder": 0,
          "SortType": 0,
          "Regex": "",
          "EmailValidation": false,
          "ShowOnList": true,
          "ShowOnCreateModal": true,
          "ShowOnEditModal": true,
          "ReadonlyOnEditModal": false,
          "EnumValues": null,
          "IsSelected": true,
          "OrdinalIndex": 0
        },
        {
          "Id": "1b7e8259-bb53-40e4-ae98-4ba3c25f4114",
          "Name": "Code",
          "Type": "string",
          "EnumType": "",
          "EnumNamespace": "",
          "EnumAngularImport": "shared/enums",
          "EnumFilePath": null,
          "DefaultValue": null,
          "IsNullable": false,
          "IsRequired": false,
          "IsFilterable": true,
          "AllowEmptyStrings": false,
          "IsTextArea": false,
          "MinLength": null,
          "MaxLength": null,
          "SortOrder": 0,
          "SortType": 0,
          "Regex": "",
          "EmailValidation": false,
          "ShowOnList": true,
          "ShowOnCreateModal": true,
          "ShowOnEditModal": true,
          "ReadonlyOnEditModal": false,
          "EnumValues": null,
          "IsSelected": true,
          "OrdinalIndex": 0
        },
        {
          "Id": "b349093d-2bf9-4036-a6c4-7a10a39834ca",
          "Name": "Symbol",
          "Type": "string",
          "EnumType": "",
          "EnumNamespace": "",
          "EnumAngularImport": "shared/enums",
          "EnumFilePath": null,
          "DefaultValue": null,
          "IsNullable": false,
          "IsRequired": false,
          "IsFilterable": true,
          "AllowEmptyStrings": false,
          "IsTextArea": false,
          "MinLength": null,
          "MaxLength": 10,
          "SortOrder": 0,
          "SortType": 0,
          "Regex": "",
          "EmailValidation": false,
          "ShowOnList": true,
          "ShowOnCreateModal": true,
          "ShowOnEditModal": true,
          "ReadonlyOnEditModal": false,
          "EnumValues": null,
          "IsSelected": true,
          "OrdinalIndex": 0
        }
      ],
      "NavigationProperties": [],
      "NavigationConnections": [],
      "ChildEntities": [],
      "PhysicalFileName": "Currency.json"
    }
    
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    I can reproduce the problem, we will check it and get back to you

  • User Avatar
    0
    masum.ulu created
    Support Team Angular Expert

    Hi, I've created a project with ABP Suite, ABP CLI and ABP Suite version is 8.2.1 both.

    Also I've created an entity. Yet I couldn't produce your problem.

    Here's my log and screenschoots

  • User Avatar
    0
    masum.ulu created
    Support Team Angular Expert

    Hi again,

    I've also create project with ABP Studio and run Suite on it. Again I couldn't re-proudce problem.

    In studio I had to use 8.3.x version. Yet the example above was 8.2.x

  • User Avatar
    0
    masum.ulu created
    Support Team Angular Expert

    Hi again onder,

    I've created project from 0 and I've used your json file, even I tried my teammate's project. Yet I couldn't produce. Can you try to update your ABP & ABP Suite versions and try again please?

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11