Starts in:
2 DAYS
5 HRS
18 MIN
14 SEC
Starts in:
2 D
5 H
18 M
14 S
Open Closed

Suite does not generate Angular UI in 6.0.1 for modules #4120


User avatar
0
ash.jackson created
  • ABP Framework version: v6.0.1
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Steps to reproduce the issue:"
    1. Create new project with application pro template.
    2. Add new module to solution with command abp add-module MyNewModule --new --add-to-solution-file -t module-pro or with Suite UI.
    3. Create a new entity.
    4. Observe that no angular UI is created.

Ref: https://support.abp.io/QA/Questions/3958/ABP-Suite-600--601

I am getting this same issue, that no Angular UI is created or detected in the newly created module:

CLI command output: [15:14:44 INF] ABP CLI (https://abp.io) [15:14:44 INF] Installing module 'CloudBiz.DepotModule' to the solution 'CloudBiz' [15:14:44 INF] Installing 'CloudBiz.DepotModule.Application' package to the project 'CloudBiz.Application'... [15:14:45 INF] Successfully installed. [15:14:45 INF] Installing 'CloudBiz.DepotModule.Application.Contracts' package to the project 'CloudBiz.Application.Contracts'... [15:14:45 INF] Successfully installed. [15:14:45 INF] Installing 'CloudBiz.DepotModule.Domain' package to the project 'CloudBiz.Domain'... [15:14:45 INF] Successfully installed. [15:14:45 INF] Installing 'CloudBiz.DepotModule.Domain.Shared' package to the project 'CloudBiz.Domain.Shared'... [15:14:45 INF] Successfully installed. [15:14:45 INF] Installing 'CloudBiz.DepotModule.EntityFrameworkCore' package to the project 'CloudBiz.EntityFrameworkCore'... [15:14:45 INF] Successfully installed. [15:14:45 INF] Installing 'CloudBiz.DepotModule.HttpApi' package to the project 'CloudBiz.HttpApi'... [15:14:45 INF] Successfully installed. [15:14:45 INF] Installing 'CloudBiz.DepotModule.HttpApi.Client' package to the project 'CloudBiz.HttpApi.Client'... [15:14:45 INF] Successfully installed. [15:14:45 INF] Creating your project... [15:14:45 INF] Project name: CloudBiz.DepotModule [15:14:45 INF] Template: module-pro [15:14:45 INF] Version: 6.0.1 [15:14:45 INF] Output folder: /Users/ashjackson/Git/CloudBiz_Dev/CloudBiz/aspnet-core/modules/CloudBiz.DepotModule [15:14:46 INF] Using cached template: module-pro, version: 6.0.1 [15:14:47 INF] 'CloudBiz.DepotModule' has been successfully created to '/Users/ashjackson/Git/CloudBiz_Dev/CloudBiz/aspnet-core/modules/CloudBiz.DepotModule'

Suite log when created entity: 2022-11-26 15:17:43.652 +00:00 [INF] 1/8 - EntityGenerateCommand started... 2022-11-26 15:17:43.868 +00:00 [INF] 1/8 - EntityGenerateCommand completed. | Duration: 215 ms. 2022-11-26 15:17:43.868 +00:00 [INF] 2/8 - RepositoryCommand started... 2022-11-26 15:17:43.954 +00:00 [INF] 2/8 - RepositoryCommand completed. | Duration: 85 ms. 2022-11-26 15:17:43.954 +00:00 [INF] 3/8 - ManagerCommand started... 2022-11-26 15:17:43.962 +00:00 [INF] 3/8 - ManagerCommand completed. | Duration: 7 ms. 2022-11-26 15:17:43.962 +00:00 [INF] 4/8 - AppServiceCommand started... 2022-11-26 15:17:48.183 +00:00 [INF] 4/8 - AppServiceCommand completed. | Duration: 4220 ms. 2022-11-26 15:17:48.183 +00:00 [INF] 5/8 - ProxyControllerCommand started... 2022-11-26 15:17:48.198 +00:00 [INF] 5/8 - ProxyControllerCommand completed. | Duration: 15 ms. 2022-11-26 15:17:48.198 +00:00 [INF] 6/8 - PermissionCommand started... 2022-11-26 15:17:48.237 +00:00 [INF] 6/8 - PermissionCommand completed. | Duration: 38 ms. 2022-11-26 15:17:48.237 +00:00 [INF] 7/8 - ApplicationObjectMappingCommand started... 2022-11-26 15:17:48.247 +00:00 [INF] 7/8 - ApplicationObjectMappingCommand completed. | Duration: 9 ms. 2022-11-26 15:17:48.247 +00:00 [INF] 8/8 - UnitTestCommandCommand started... 2022-11-26 15:17:48.272 +00:00 [INF] 8/8 - UnitTestCommandCommand completed. | Duration: 24 ms. 2022-11-26 15:17:48.272 +00:00 [INF] Entity generation completed in 5 sec. 2022-11-26 15:17:48.273 +00:00 [INF] Executing StatusCodeResult, setting HTTP status code 204 2022-11-26 15:17:48.273 +00:00 [INF] Executed action Volo.Abp.Suite.Controllers.CrudPageGeneratorController.SaveAndGenerateEntityAsync (Volo.Abp.Suite) in 5698.1333ms 2022-11-26 15:17:48.273 +00:00 [INF] Executed endpoint 'Volo.Abp.Suite.Controllers.CrudPageGeneratorController.SaveAndGenerateEntityAsync (Volo.Abp.Suite)' 2022-11-26 15:17:48.273 +00:00 [INF] Request finished HTTP/1.1 POST http://localhost:3000/api/abpSuite/crudPageGenerator/0db2e355-beae-4b20-a912-2e67289caded/save-and-generate-entity application/json 872 - 204 - - 5701.9508ms 2022-11-26 15:17:48.305 +00:00 [INF] Request starting HTTP/1.1 GET http://localhost:3000/api/abpSuite/crudPageGenerator/0db2e355-beae-4b20-a912-2e67289caded/entities application/json - 2022-11-26 15:17:48.306 +00:00 [INF] Executing endpoint 'Volo.Abp.Suite.Controllers.CrudPageGeneratorController.GetEntitiesAsync (Volo.Abp.Suite)' 2022-11-26 15:17:48.306 +00:00 [INF] Route matched with {controller = "crudPageGenerator", action = "GetEntities", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task1[System.Collections.Generic.List1[Volo.Abp.Suite.Models.EntityModel]] GetEntitiesAsync(System.Guid) on controller Volo.Abp.Suite.Controllers.CrudPageGeneratorController (Volo.Abp.Suite). 2022-11-26 15:17:48.310 +00:00 [INF] Executing ObjectResult, writing value of type 'System.Collections.Generic.List1[[Volo.Abp.Suite.Models.EntityModel, Volo.Abp.Suite, Version=6.0.1.0, Culture=neutral, PublicKeyToken=null]]'. 2022-11-26 15:17:48.311 +00:00 [INF] Executed action Volo.Abp.Suite.Controllers.CrudPageGeneratorController.GetEntitiesAsync (Volo.Abp.Suite) in 5.4384ms 2022-11-26 15:17:48.311 +00:00 [INF] Executed endpoint 'Volo.Abp.Suite.Controllers.CrudPageGeneratorController.GetEntitiesAsync (Volo.Abp.Suite)' 2022-11-26 15:17:48.311 +00:00 [INF] Request finished HTTP/1.1 GET http://localhost:3000/api/abpSuite/crudPageGenerator/0db2e355-beae-4b20-a912-2e67289caded/entities application/json - - 200 - application/json;+charset=utf-8 6.1146ms 2022-11-26 15:17:48.347 +00:00 [INF] Request starting HTTP/1.1 GET http://localhost:3000/api/abpSuite/crudPageGenerator/0db2e355-beae-4b20-a912-2e67289caded/Depot application/json - 2022-11-26 15:17:48.349 +00:00 [INF] Executing endpoint 'Volo.Abp.Suite.Controllers.CrudPageGeneratorController.GetEntityAsync (Volo.Abp.Suite)' 2022-11-26 15:17:48.349 +00:00 [INF] Route matched with {controller = "crudPageGenerator", action = "GetEntity", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task1[Volo.Abp.Suite.Models.EntityModel] GetEntityAsync(System.Guid, System.String) on controller Volo.Abp.Suite.Controllers.CrudPageGeneratorController (Volo.Abp.Suite). 2022-11-26 15:17:48.362 +00:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Suite.Models.EntityModel'. 2022-11-26 15:17:48.362 +00:00 [INF] Executed action Volo.Abp.Suite.Controllers.CrudPageGeneratorController.GetEntityAsync (Volo.Abp.Suite) in 12.7092ms 2022-11-26 15:17:48.362 +00:00 [INF] Executed endpoint 'Volo.Abp.Suite.Controllers.CrudPageGeneratorController.GetEntityAsync (Volo.Abp.Suite)' 2022-11-26 15:17:48.362 +00:00 [INF] Request finished HTTP/1.1 GET http://localhost:3000/api/abpSuite/crudPageGenerator/0db2e355-beae-4b20-a912-2e67289caded/Depot application/json - - 200 - application/json;+charset=utf-8 15.4825ms


18 Answer(s)
  • User Avatar
    0
    ash.jackson created

    I also tried updating to preview (7.0.0-rc2) and entity generation fails with the following message: `2022-11-26 15:46:26.912 +00:00 [INF] 1/9 - EntityGenerateCommand started... 2022-11-26 15:46:26.960 +00:00 [INF] 1/9 - EntityGenerateCommand completed. | Duration: 47 ms. 2022-11-26 15:46:26.960 +00:00 [INF] 2/9 - RepositoryCommand started... 2022-11-26 15:46:27.066 +00:00 [INF] 2/9 - RepositoryCommand completed. | Duration: 105 ms. 2022-11-26 15:46:27.066 +00:00 [INF] 3/9 - ManagerCommand started... 2022-11-26 15:46:27.087 +00:00 [WRN] ---------- RemoteServiceErrorInfo ---------- { "code": null, "message": "Cannot read the template Volo.Abp.Commercial.SuiteTemplates.Templates.Server.Domain.Partials.Manager_UpdateGetQuery.txt", "details": null, "data": {}, "validationErrors": null }

    2022-11-26 15:46:27.087 +00:00 [WRN] Cannot read the template Volo.Abp.Commercial.SuiteTemplates.Templates.Server.Domain.Partials.Manager_UpdateGetQuery.txt Volo.Abp.UserFriendlyException: Cannot read the template Volo.Abp.Commercial.SuiteTemplates.Templates.Server.Domain.Partials.Manager_UpdateGetQuery.txt at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Services.TemplateService.ReadFromTemplateAsync(String relativeResourceName, CrudPageCommandOptions options, String defaultValue) at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Services.TemplateService.PopulateTemplateAsync(String relativeResourceName, CrudPageCommandOptions options) at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.ManagerCommand.SeM5l53jL1(String ) at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.ManagerCommand.IDQ5HkRatR() at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.ManagerCommand.ExecuteAsync(CrudPageCommandOptions options) at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.CommandManager.ExecuteAllAsync(CrudPageCommandOptions options) at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.CrudPageGenerator.GenerateAsync(EntityModel entity, Solution solution) at Volo.Abp.Suite.Controllers.CrudPageGeneratorController.SaveAndGenerateEntityAsync(Guid solutionId, EntityModel entity) at lambda_method1860(Closure, Object) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.

  • User Avatar
    0
    selwade created

    same here with 7.0.0-rc2

  • User Avatar
    0
    ash.jackson created

    Hi, Is anyone from ABP going to respond to this ticket?

    AJ

  • User Avatar
    1
    yekalkan created
    Support Team Fullstack Developer

    Hi @ash.jackson,

    We're checking the issue.

    I also tried updating to preview (7.0.0-rc2) and entity generation fails with the following message

    This is probably related with version unmatch between Suite and Your project.

  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    Update:

    We are releasing v6.0.2 in a couple of days and it will fix this issue.

    If you still face this problem after upgrading to v6.0.2, please open this ticket again.

    The question credit has been refunded.

  • User Avatar
    0
    ash.jackson created

    Hi, I updated to 6.0.2, but now get this error when generating a new entity in a Microservice project.

    2022-12-07 10:13:21.411 +00:00 [INF] 1/10 - EntityGenerateCommand started...
    2022-12-07 10:13:24.109 +00:00 [INF] 1/10 - EntityGenerateCommand completed.                           | Duration: 2691 ms.
    2022-12-07 10:13:24.109 +00:00 [INF] 2/10 - RepositoryCommand started...
    2022-12-07 10:13:24.232 +00:00 [INF] 2/10 - RepositoryCommand completed.                               | Duration: 122 ms.
    2022-12-07 10:13:24.232 +00:00 [INF] 3/10 - ManagerCommand started...
    2022-12-07 10:13:24.272 +00:00 [INF] 3/10 - ManagerCommand completed.                                  | Duration: 39 ms.
    2022-12-07 10:13:24.272 +00:00 [INF] 4/10 - AppServiceCommand started...
    2022-12-07 10:13:29.805 +00:00 [INF] 4/10 - AppServiceCommand completed.                               | Duration: 5532 ms.
    2022-12-07 10:13:29.805 +00:00 [INF] 5/10 - ProxyControllerCommand started...
    2022-12-07 10:13:29.831 +00:00 [INF] 5/10 - ProxyControllerCommand completed.                          | Duration: 25 ms.
    2022-12-07 10:13:29.831 +00:00 [INF] 6/10 - PermissionCommand started...
    2022-12-07 10:13:29.892 +00:00 [INF] 6/10 - PermissionCommand completed.                               | Duration: 60 ms.
    2022-12-07 10:13:29.892 +00:00 [INF] 7/10 - ApplicationObjectMappingCommand started...
    2022-12-07 10:13:29.922 +00:00 [INF] 7/10 - ApplicationObjectMappingCommand completed.                 | Duration: 29 ms.
    2022-12-07 10:13:29.922 +00:00 [INF] 8/10 - UnitTestCommandCommand started...
    2022-12-07 10:13:30.033 +00:00 [INF] 8/10 - UnitTestCommandCommand completed.                          | Duration: 110 ms.
    2022-12-07 10:13:30.033 +00:00 [INF] 9/10 - GenerateProxyCommand started...
    2022-12-07 10:13:30.038 +00:00 [WRN] ---------- RemoteServiceErrorInfo ----------
    {
      "code": null,
      "message": "Cannot read the template Volo.Abp.Commercial.SuiteTemplates.Templates.Server.Proxy.Proxy.txt",
      "details": null,
      "data": {},
      "validationErrors": null
    }
    
    2022-12-07 10:13:30.038 +00:00 [WRN] Cannot read the template Volo.Abp.Commercial.SuiteTemplates.Templates.Server.Proxy.Proxy.txt
    Volo.Abp.UserFriendlyException: Cannot read the template Volo.Abp.Commercial.SuiteTemplates.Templates.Server.Proxy.Proxy.txt
       at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Services.TemplateService.ReadFromTemplateAsync(String relativeResourceName, CrudPageCommandOptions options, String defaultValue)
       at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Services.TemplateService.PopulateTemplateAsync(String relativeResourceName, CrudPageCommandOptions options)
       at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.GenerateProxyCommand.EGCmOkTk9L()
       at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.GenerateProxyCommand.ExecuteAsync(CrudPageCommandOptions options)
       at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.CommandManager.ExecuteAllAsync(CrudPageCommandOptions options)
       at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.CrudPageGenerator.GenerateAsync(EntityModel entity, Solution solution)
       at Volo.Abp.Suite.Controllers.CrudPageGeneratorController.SaveAndGenerateEntityAsync(Guid solutionId, EntityModel entity)
       at lambda_method1872(Closure , Object )
       at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.&lt;InvokeNextActionFilterAsync&gt;g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.&lt;InvokeInnerFilterAsync&gt;g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.&lt;InvokeNextExceptionFilterAsync&gt;g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
    

    I uninstalled and reinstalled CLI and Suite in case the issue was with upgrade, but the problem persists.

  • User Avatar
    0
    mc86 created

    same here 6.0.2 in blazor server /microservice/

  • User Avatar
    0
    hi.wujj@gmail.com created

    same here with 7.0.0-rc2

    same here with 7.0.0-rc2 +1

  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    @ash.jackson What is the projects abp version?

  • User Avatar
    0
    ash.jackson created

    @ash.jackson What is the projects abp version?

    The project is 6.0.1, I updated to 6.0.2 and the same error occurs - I created also brand new test project in 6.0.2 and the problem is the same as in my existing project.

    Just to be clear - the problem is manifested differently depending on monolith or micro service template:

    Module within monolith (application pro) template = Entity generation runs without error, but no angular UI is generated. Module within micro service template = Entity generation throws the error above.

  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    Module within monolith

    In the src\environments\environment.ts file of the main angular project, There may be a missing bracket ({). Can you add it manually?

      apis: {
        ModuleName: { <--- the missing bracket
          rootNamespace: 'ModuleName',
        },
        default: {
    
  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    Module within micro service template = Entity generation throws the error above.

    What do you mean by Module? A microservice-service-pro template?

  • User Avatar
    0
    ash.jackson created

    Module within micro service template = Entity generation throws the error above.

    What do you mean by Module? A microservice-service-pro template?

    That's correct, generated with the command abp new MyService -t microservice-service-pro

  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    That's correct, generated with the command abp new MyService -t microservice-service-pro

    What is the version of Volo.Abp.Commercial.SuiteTemplates package in *.Domain.Shared project?

  • User Avatar
    0
    ash.jackson created

    That's correct, generated with the command abp new MyService -t microservice-service-pro

    What is the version of Volo.Abp.Commercial.SuiteTemplates package in *.Domain.Shared project?

    Hi, the version is 6.0.2

  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    Was the project's abp version 6.0.2 when you created it, or did you upgrade it from an older version? If so, have you build the project after the upgrage?

  • User Avatar
    0
    ash.jackson created

    Was the project's abp version 6.0.2 when you created it, or did you upgrade it from an older version? If so, have you build the project after the upgrage?

    Hi There,

    Creating a new solution with 6.0.2 and everything is working, so the problem is with how I upgraded from 6.0.1. I will test the steps for upgrading and update the ticket with the result. AJ.

  • User Avatar
    0
    ash.jackson created

    Was the project's abp version 6.0.2 when you created it, or did you upgrade it from an older version? If so, have you build the project after the upgrage?

    Hi There,

    When upgrading from 6.0.1 after the following steps the suite generation now works 👍

    1. app update
    2. Solution Clean
    3. Solution Build
    4. Generate/Re-generate entity with suite.

    Thanks, AJ.

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