Hi,
I would like to follow on the issue. Any update on the next RC release? When would it be released?
Hello
We have tried the same steps again after updating to version 7.1.0-rc.1 but are still having the same issue - angular files are not generated for the entity. Kindly view the abp suite logs below:
2023-02-10 00:44:36.386 +03:00 [INF] Route matched with {controller = "crudPageGenerator", action = "SaveAndGenerateEntity", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.NoContentResult] SaveAndGenerateEntityAsync(System.Guid, Volo.Abp.Suite.Models.EntityModel) on controller Volo.Abp.Suite.Controllers.CrudPageGeneratorController (Volo.Abp.Suite).
2023-02-10 00:44:36.677 +03:00 [INF]
=== ENTITY GENERATION STARTED ===
* SOLUTION: SchoolAut0mater.Staff
* ENTITY:{
"Id": "5e45a018-331b-4ae5-9f54-3f662627d19d",
"Name": "AcademicYear",
"OriginalName": "AcademicYear",
"NamePlural": "AcademicYears",
"DatabaseTableName": "AcademicYears",
"Namespace": "AcademicYears",
"BaseClass": "FullAuditedAggregateRoot",
"MenuIcon": "file-alt",
"PrimaryKeyType": "Guid",
"IsMultiTenant": false,
"CheckConcurrency": true,
"ShouldCreateUserInterface": true,
"ShouldCreateBackend": true,
"ShouldExportExcel": true,
"ShouldAddMigration": true,
"ShouldUpdateDatabase": true,
"CreateTests": true,
"Properties": [
{
"Id": "9b6891b6-e588-4691-bbda-6bfa0172bc8e",
"Name": "Code",
"Type": "string",
"EnumType": "",
"EnumNamespace": "",
"EnumAngularImport": "shared/enums",
"EnumFilePath": null,
"DefaultValue": null,
"IsNullable": false,
"IsRequired": false,
"IsTextArea": false,
"MinLength": null,
"MaxLength": null,
"SortOrder": 0,
"SortType": 0,
"Regex": "",
"EmailValidation": false,
"EnumValues": null,
"IsSelected": true,
"OrdinalIndex": 0
}
],
"NavigationProperties": [],
"NavigationConnections": [],
"PhysicalFileName": "AcademicYear.json"
}
2023-02-10 00:44:36.678 +03:00 [INF] 1/9 - EntityGenerateCommand started...
2023-02-10 00:44:36.711 +03:00 [INF] Request starting HTTP/1.1 GET http://localhost:3000/Themes/Lepton/Global/assets/fonts/poppins-v6-latin-700.woff2 - -
2023-02-10 00:44:36.716 +03:00 [INF] Sending file. Request path: '/Themes/Lepton/Global/assets/fonts/poppins-v6-latin-700.woff2'. Physical path: 'N/A'
2023-02-10 00:44:36.716 +03:00 [INF] Request finished HTTP/1.1 GET http://localhost:3000/Themes/Lepton/Global/assets/fonts/poppins-v6-latin-700.woff2 - - - 200 7924 font/woff2 5.0516ms
2023-02-10 00:44:37.628 +03:00 [INF] 1/9 - EntityGenerateCommand completed. | Duration: 947 ms.
2023-02-10 00:44:37.628 +03:00 [INF] 2/9 - RepositoryCommand started...
2023-02-10 00:44:37.695 +03:00 [INF] 2/9 - RepositoryCommand completed. | Duration: 66 ms.
2023-02-10 00:44:37.695 +03:00 [INF] 3/9 - ManagerCommand started...
2023-02-10 00:44:37.716 +03:00 [INF] 3/9 - ManagerCommand completed. | Duration: 20 ms.
2023-02-10 00:44:37.716 +03:00 [INF] 4/9 - AppServiceCommand started...
2023-02-10 00:44:44.965 +03:00 [INF] 4/9 - AppServiceCommand completed. | Duration: 7248 ms.
2023-02-10 00:44:44.965 +03:00 [INF] 5/9 - ProxyControllerCommand started...
2023-02-10 00:44:44.983 +03:00 [INF] 5/9 - ProxyControllerCommand completed. | Duration: 17 ms.
2023-02-10 00:44:44.983 +03:00 [INF] 6/9 - PermissionCommand started...
2023-02-10 00:44:45.010 +03:00 [INF] 6/9 - PermissionCommand completed. | Duration: 26 ms.
2023-02-10 00:44:45.010 +03:00 [INF] 7/9 - ApplicationObjectMappingCommand started...
2023-02-10 00:44:45.021 +03:00 [INF] 7/9 - ApplicationObjectMappingCommand completed. | Duration: 10 ms.
2023-02-10 00:44:45.021 +03:00 [INF] 8/9 - UnitTestCommandCommand started...
2023-02-10 00:44:45.054 +03:00 [INF] 8/9 - UnitTestCommandCommand completed. | Duration: 33 ms.
2023-02-10 00:44:45.054 +03:00 [INF] 9/9 - GenerateProxyCommand started...
2023-02-10 00:44:45.055 +03:00 [INF] 9/9 - GenerateProxyCommand completed. | Duration: 0 ms.
2023-02-10 00:44:45.055 +03:00 [INF] Entity generation completed in 8 sec.
2023-02-10 00:44:45.057 +03:00 [INF] Executing StatusCodeResult, setting HTTP status code 204
2023-02-10 00:44:45.057 +03:00 [INF] Executed action Volo.Abp.Suite.Controllers.CrudPageGeneratorController.SaveAndGenerateEntityAsync (Volo.Abp.Suite) in 8671.12ms
2023-02-10 00:44:45.057 +03:00 [INF] Executed endpoint 'Volo.Abp.Suite.Controllers.CrudPageGeneratorController.SaveAndGenerateEntityAsync (Volo.Abp.Suite)'
2023-02-10 00:44:45.057 +03:00 [INF] Request finished HTTP/1.1 POST http://localhost:3000/api/abpSuite/crudPageGenerator/2cb57931-7304-40d2-8fbe-d883cbea5edc/save-and-generate-entity application/json 902 - 204 - - 8672.2334ms
2023-02-10 00:44:45.075 +03:00 [INF] Request starting HTTP/1.1 GET http://localhost:3000/api/abpSuite/crudPageGenerator/2cb57931-7304-40d2-8fbe-d883cbea5edc/entities application/json -
2023-02-10 00:44:45.076 +03:00 [INF] Executing endpoint 'Volo.Abp.Suite.Controllers.CrudPageGeneratorController.GetEntitiesAsync (Volo.Abp.Suite)'
2023-02-10 00:44:45.076 +03:00 [INF] Route matched with {controller = "crudPageGenerator", action = "GetEntities", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[System.Collections.Generic.List`1[Volo.Abp.Suite.Models.EntityModel]] GetEntitiesAsync(System.Guid) on controller Volo.Abp.Suite.Controllers.CrudPageGeneratorController (Volo.Abp.Suite).
2023-02-10 00:44:45.079 +03:00 [INF] Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[Volo.Abp.Suite.Models.EntityModel, Volo.Abp.Suite, Version=7.1.0.0, Culture=neutral, PublicKeyToken=null]]'.
2023-02-10 00:44:45.080 +03:00 [INF] Executed action Volo.Abp.Suite.Controllers.CrudPageGeneratorController.GetEntitiesAsync (Volo.Abp.Suite) in 4.1813ms
2023-02-10 00:44:45.080 +03:00 [INF] Executed endpoint 'Volo.Abp.Suite.Controllers.CrudPageGeneratorController.GetEntitiesAsync (Volo.Abp.Suite)'
2023-02-10 00:44:45.080 +03:00 [INF] Request finished HTTP/1.1 GET http://localhost:3000/api/abpSuite/crudPageGenerator/2cb57931-7304-40d2-8fbe-d883cbea5edc/entities application/json - - 200 - application/json;+charset=utf-8 4.8682ms
2023-02-10 00:44:45.105 +03:00 [INF] Request starting HTTP/1.1 GET http://localhost:3000/api/abpSuite/crudPageGenerator/2cb57931-7304-40d2-8fbe-d883cbea5edc/AcademicYear application/json -
2023-02-10 00:44:45.105 +03:00 [INF] Executing endpoint 'Volo.Abp.Suite.Controllers.CrudPageGeneratorController.GetEntityAsync (Volo.Abp.Suite)'
2023-02-10 00:44:45.106 +03:00 [INF] Route matched with {controller = "crudPageGenerator", action = "GetEntity", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Volo.Abp.Suite.Models.EntityModel] GetEntityAsync(System.Guid, System.String) on controller Volo.Abp.Suite.Controllers.CrudPageGeneratorController (Volo.Abp.Suite).
2023-02-10 00:44:45.108 +03:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Suite.Models.EntityModel'.
2023-02-10 00:44:45.108 +03:00 [INF] Executed action Volo.Abp.Suite.Controllers.CrudPageGeneratorController.GetEntityAsync (Volo.Abp.Suite) in 2.7032ms
2023-02-10 00:44:45.108 +03:00 [INF] Executed endpoint 'Volo.Abp.Suite.Controllers.CrudPageGeneratorController.GetEntityAsync (Volo.Abp.Suite)'
2023-02-10 00:44:45.108 +03:00 [INF] Request finished HTTP/1.1 GET http://localhost:3000/api/abpSuite/crudPageGenerator/2cb57931-7304-40d2-8fbe-d883cbea5edc/AcademicYear application/json - - 200 - application/json;+charset=utf-8 3.4621ms
We have updated the project so cannot reproduce the above error currently.
We are facing another issue where the angular components and proxies are not generated if the module name is hyphenated or has a '.' in the name. Kindly find the errors and steps to reproduce below. Kindly let us know if there is a workaround for the same.
Our Project have 2 parts
abp new SchoolAut0mater -t app-pro -u angular -m none --database-provider ef -csf
abp add-module SchoolAut0mater.Staff --new -t module-pro -u angular --add-to-solution-file --startup-project .\aspnet-core\src\SchoolAut0mater.HttpApi.Host\SchoolAut0mater.HttpApi.Host.csproj
First part worked, We were able to run the application. When we add part 2, we faced some issue somehow we fixed using below changes
"@school-aut0mater/staff"
to "@staff"
in '.\SchoolAut0mater\angular\projects\staff\package.json'"@school-aut0mater/staff"
to "@staff"
in '.\SchoolAut0mater\angular\tsconfig.json'"@school-aut0mater/staff/config"
to "@staff/config"
in '.\SchoolAut0mater\angular\tsconfig.json'import { StaffService } from './staff.service';
to import { StaffService } from './services/staff.service';
import { StaffComponent } from './staff.component';
to import { StaffComponent } from './components/staff.component';
some how the application is working
Now I am using abp suite
to generate/scaffolding all required items including angular files for am entity "MITCatalog", Unfortunately the angular files are not generated.
No matter what I tried there are no signs of angular files generation.
So I had a doubts on name conversion of my Module solution name 'SchoolAut0mater.Staff'. I have delete all codes or Module 'SchoolAut0mater.Staff' and decided to recreate a new module with the name 'Staff'
abp add-module Staff --new -t module-pro -u angular --add-to-solution-file --startup-project .\aspnet-core\src\SchoolAut0mater.HttpApi.Host\SchoolAut0mater.HttpApi.Host.csproj
import { StaffService } from './staff.service';
to import { StaffService } from './services/staff.service';
import { StaffComponent } from './staff.component';
to import { StaffComponent } from './components/staff.component';
some how the application is working Now I am using abp suite to generate/scaffolding all required items including angular files for the same entity "MITCatalog", Now angular files are create this time.
We want all the name of module for our solutions to prefix with SchoolA0tomater
is there any solution....
2023-02-01 22:27:46.364 +03:00 [INF] 1/8 - EntityGenerateCommand started...
2023-02-01 22:27:46.392 +03:00 [ERR] ---------- RemoteServiceErrorInfo ----------
{
"code": null,
"message": "An internal error occurred during your request!",
"details": null,
"data": {},
"validationErrors": null
}
2023-02-01 22:27:46.394 +03:00 [ERR] StartIndex cannot be less than zero. (Parameter 'startIndex')
System.ArgumentOutOfRangeException: StartIndex cannot be less than zero. (Parameter 'startIndex')
at System.String.ThrowSubstringArgumentOutOfRange(Int32 startIndex, Int32 length)
at System.String.Substring(Int32 startIndex)
at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.EntityGenerateCommand.yuTUj3U4io(Boolean , String , String )
at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.EntityGenerateCommand.ro9U4s63A3(Boolean )
at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.EntityGenerateCommand.P0DjoGvf0Y()
at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.EntityGenerateCommand.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_method2022(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.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>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.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
2023-02-01 22:27:46.404 +03:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Http.RemoteServiceErrorResponse'.
2023-02-01 22:27:46.404 +03:00 [INF] Executed action Volo.Abp.Suite.Controllers.CrudPageGeneratorController.SaveAndGenerateEntityAsync (Volo.Abp.Suite) in 168.82ms
2023-02-01 22:27:46.404 +03:00 [INF] Executed endpoint 'Volo.Abp.Suite.Controllers.CrudPageGeneratorController.SaveAndGenerateEntityAsync (Volo.Abp.Suite)'
2023-02-01 22:27:46.404 +03:00 [INF] Request finished HTTP/1.1 POST http://localhost:3000/api/abpSuite/crudPageGenerator/588e4183-b13b-4eaa-b725-bed37a83b973/save-and-generate-entity application/json 5653 - 500 - application/json;+charset=utf-8 169.2439ms
{
"Id": "c7dc1f48-89d7-417e-97ad-fcb8d2e078f5",
"Name": "MITItem",
"OriginalName": "MITItem",
"NamePlural": "MITItems",
"DatabaseTableName": "MITItems",
"Namespace": "MITs",
"BaseClass": "FullAuditedAggregateRoot",
"MenuIcon": "tools",
"PrimaryKeyType": "int",
"IsMultiTenant": false,
"CheckConcurrency": true,
"ShouldCreateUserInterface": false,
"ShouldCreateBackend": true,
"ShouldExportExcel": false,
"ShouldAddMigration": true,
"ShouldUpdateDatabase": true,
"CreateTests": false,
"Properties": [
{
"Id": "b124bb7e-c962-4a10-8dd1-4f7539bf3eac",
"Name": "Code",
"Type": "string",
"EnumType": "",
"EnumNamespace": "",
"EnumAngularImport": "shared/enums",
"EnumFilePath": null,
"DefaultValue": null,
"IsNullable": false,
"IsRequired": true,
"IsTextArea": false,
"MinLength": null,
"MaxLength": null,
"SortOrder": 0,
"SortType": 0,
"Regex": "[a-zA-Z0-9.-]*",
"EmailValidation": false,
"EnumValues": null,
"IsSelected": true,
"OrdinalIndex": 0
},
{
"Id": "6b7f1739-b91f-4056-849e-9f98df382e4d",
"Name": "Name",
"Type": "string",
"EnumType": "",
"EnumNamespace": "",
"EnumAngularImport": "shared/enums",
"EnumFilePath": null,
"DefaultValue": null,
"IsNullable": false,
"IsRequired": true,
"IsTextArea": false,
"MinLength": null,
"MaxLength": null,
"SortOrder": 0,
"SortType": 0,
"Regex": "[a-zA-Z0-9\\-_ .]*",
"EmailValidation": false,
"EnumValues": null,
"IsSelected": true,
"OrdinalIndex": 0
},
{
"Id": "6c90c2f7-de33-4757-872e-22d86ae9317a",
"Name": "DisplayName",
"Type": "string",
"EnumType": "",
"EnumNamespace": "",
"EnumAngularImport": "shared/enums",
"EnumFilePath": null,
"DefaultValue": null,
"IsNullable": false,
"IsRequired": false,
"IsTextArea": false,
"MinLength": null,
"MaxLength": null,
"SortOrder": 0,
"SortType": 0,
"Regex": "",
"EmailValidation": false,
"EnumValues": null,
"IsSelected": true,
"OrdinalIndex": 0
},
{
"Id": "f0c010c1-2dfd-40d6-a0c1-cfe96500f60b",
"Name": "Description",
"Type": "string",
"EnumType": "",
"EnumNamespace": "",
"EnumAngularImport": "shared/enums",
"EnumFilePath": null,
"DefaultValue": null,
"IsNullable": false,
"IsRequired": false,
"IsTextArea": false,
"MinLength": null,
"MaxLength": null,
"SortOrder": 0,
"SortType": 0,
"Regex": "",
"EmailValidation": false,
"EnumValues": null,
"IsSelected": true,
"OrdinalIndex": 0
},
{
"Id": "9f916871-c973-420b-b74b-b96bde46524f",
"Name": "Hint",
"Type": "string",
"EnumType": "",
"EnumNamespace": "",
"EnumAngularImport": "shared/enums",
"EnumFilePath": null,
"DefaultValue": null,
"IsNullable": false,
"IsRequired": false,
"IsTextArea": false,
"MinLength": null,
"MaxLength": null,
"SortOrder": 0,
"SortType": 0,
"Regex": "",
"EmailValidation": false,
"EnumValues": null,
"IsSelected": true,
"OrdinalIndex": 0
},
{
"Id": "ae86f1c3-85b8-45fb-9357-4b84e989df45",
"Name": "HintAsHtml",
"Type": "string",
"EnumType": "",
"EnumNamespace": "",
"EnumAngularImport": "shared/enums",
"EnumFilePath": null,
"DefaultValue": null,
"IsNullable": false,
"IsRequired": false,
"IsTextArea": false,
"MinLength": null,
"MaxLength": null,
"SortOrder": 0,
"SortType": 0,
"Regex": "",
"EmailValidation": false,
"EnumValues": null,
"IsSelected": true,
"OrdinalIndex": 0
},
{
"Id": "651f0581-df06-4b64-aff0-67d9ae59a715",
"Name": "DatabaseValue",
"Type": "string",
"EnumType": "",
"EnumNamespace": "",
"EnumAngularImport": "shared/enums",
"EnumFilePath": null,
"DefaultValue": null,
"IsNullable": false,
"IsRequired": true,
"IsTextArea": false,
"MinLength": null,
"MaxLength": null,
"SortOrder": 0,
"SortType": 0,
"Regex": "[a-zA-Z0-9-\\.]*",
"EmailValidation": false,
"EnumValues": null,
"IsSelected": true,
"OrdinalIndex": 0
},
{
"Id": "930548ff-9590-4816-af77-b0212c0ca355",
"Name": "DisplayValue",
"Type": "string",
"EnumType": "",
"EnumNamespace": "",
"EnumAngularImport": "shared/enums",
"EnumFilePath": null,
"DefaultValue": null,
"IsNullable": false,
"IsRequired": false,
"IsTextArea": false,
"MinLength": null,
"MaxLength": null,
"SortOrder": 0,
"SortType": 0,
"Regex": "[a-zA-Z0-9\\-_ .]*",
"EmailValidation": false,
"EnumValues": null,
"IsSelected": true,
"OrdinalIndex": 0
},
{
"Id": "feea4237-8917-440b-916f-c6b9a6cf088c",
"Name": "SortOrder",
"Type": "int",
"EnumType": "",
"EnumNamespace": "",
"EnumAngularImport": "shared/enums",
"EnumFilePath": null,
"DefaultValue": null,
"IsNullable": false,
"IsRequired": false,
"IsTextArea": false,
"MinLength": null,
"MaxLength": null,
"SortOrder": 1,
"SortType": 1,
"Regex": "",
"EmailValidation": false,
"EnumValues": null,
"IsSelected": true,
"OrdinalIndex": 0
},
{
"Id": "a16a6bfd-9d67-4def-bb05-1297e8bae731",
"Name": "IsFactory",
"Type": "bool",
"EnumType": "",
"EnumNamespace": "",
"EnumAngularImport": "shared/enums",
"EnumFilePath": null,
"DefaultValue": "false",
"IsNullable": false,
"IsRequired": false,
"IsTextArea": false,
"MinLength": null,
"MaxLength": null,
"SortOrder": 0,
"SortType": 0,
"Regex": "",
"EmailValidation": false,
"EnumValues": null,
"IsSelected": true,
"OrdinalIndex": 0
},
{
"Id": "94e29170-0655-4b18-b4a6-63a3e6560f23",
"Name": "IsActive",
"Type": "bool",
"EnumType": "",
"EnumNamespace": "",
"EnumAngularImport": "shared/enums",
"EnumFilePath": null,
"DefaultValue": "true",
"IsNullable": false,
"IsRequired": false,
"IsTextArea": false,
"MinLength": null,
"MaxLength": null,
"SortOrder": 0,
"SortType": 0,
"Regex": "",
"EmailValidation": false,
"EnumValues": null,
"IsSelected": true,
"OrdinalIndex": 0
}
],
"NavigationProperties": [
{
"EntityNameWithDuplicationNumber": "MITCatalog",
"EntitySetNameWithDuplicationNumber": "Catalogs",
"ReferencePropertyName": "Catalog",
"UiPickType": "Typeahead",
"IsRequired": true,
"Name": "CatalogId",
"DisplayProperty": "DisplayName",
"Namespace": "SchoolAut0mater.CoreService.MITCatalogs",
"EntityName": "MITCatalog",
"EntitySetName": "Catalogs",
"DtoNamespace": "SchoolAut0mater.CoreService.MITCatalogs",
"DtoEntityName": "MITCatalogDto",
"Type": "int"
}
],
"NavigationConnections": [],
"PhysicalFileName": "MITItem.json"
}
abp suite
save and generate
I am still facing the same issue with ABP 7.0.1 as well. Please find the logs below. I have noticed that the issue is with only modules created in a project created with the module startup template but angular components and proxies are generated in modules created within a project created using an application startup template. Is there a workaround available to for the same?
ABP Framework version: v7.0.0
UI type: Angular
DB provider: EF Core
Steps to reproduce the issue:
I am having a few issues with the module template. I created a new module solution in abp suite and set it up using the below guide :
https://docs.abp.io/en/abp/latest/Startup-Templates/Module#how-to-start-with
I have added a core module to the main solution using the abp suite and was able to add an entity to core as well. The suite only generates mvc frontend and does not generate any angular files. How could we generate angular files as well for the new entities? I am also having issues generating proxies for the entities. I get the same error even after specifying the module. Kindly advise
abp generate-proxy -t ng ABP CLI 7.0.0 DEPRECATED: The 'defaultProject' workspace option has been deprecated. The project to use will be determined from the current working directory. [Invalid Module] Backend module "app" does not exist in API definition.
abp generate-proxy -t ng -m dev-app
ABP CLI 7.0.0
DEPRECATED: The 'defaultProject' workspace option has been deprecated. The project to use will be determined from the current working directory.
[Invalid Module] Backend module "dev-app" does not exist in API definition.
I have updated the repository settings. Is there any update or solution available for the above issue ?
I have followed the steps as mentioned in the below document to add a microservice to our solution. I am able to run the application and add entities but the angular components are not generated using the CRUD page generator.
https://docs.abp.io/en/commercial/7.0/startup-templates/microservice/add-microservice
Exception message :
Angular Schematics command failed. file:///Users/abeer/Projects/abp.io/abp.io.7-preview/SchoolAut0mater/apps/angular/.suite/schematics/node_modules/execa/lib/error.js:59 error = new Error(message); ^
Error: Command failed with exit code 1: .suite/schematics/node_modules/.bin/ng g .suite/schematics/collection.json:entity --template microservice-pro --target SchoolAut0mater.CoreService --source /Users/abeer/Projects/abp.io/abp.io.7-preview/SchoolAut0mater/services/core/.suite/entities/AcademicTerm.json Cannot read properties of undefined (reading 'forEach') at makeError (file:///Users/abeer/Projects/abp.io/abp.io.7-preview/SchoolAut0mater/apps/angular/.suite/schematics/node_modules/execa/lib/error.js:59:11) at handlePromise (file:///Users/abeer/Projects/abp.io/abp.io.7-preview/SchoolAut0mater/apps/angular/.suite/schematics/node_modules/execa/index.js:119:26) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async file:///Users/abeer/Projects/abp.io/abp.io.7-preview/SchoolAut0mater/apps/angular/.suite/schematics/run-schematics.mjs:6:20 { shortMessage: 'Command failed with exit code 1: .suite/schematics/node_modules/.bin/ng g .suite/schematics/collection.json:entity --template microservice-pro --target SchoolAut0mater.CoreService --source /Users/abeer/Projects/abp.io/abp.io.7-preview/SchoolAut0mater/services/core/.suite/entities/AcademicTerm.json', command: '.suite/schematics/node_modules/.bin/ng g .suite/schematics/collection.json:entity --template microservice-pro --target SchoolAut0mater.CoreService --source /Users/abeer/Projects/abp.io/abp.io.7-preview/SchoolAut0mater/services/core/.suite/entities/AcademicTerm.json', escapedCommand: '".suite/schematics/node_modules/.bin/ng" g ".suite/schematics/collection.json:entity" --template microservice-pro --target SchoolAut0mater.CoreService --source "/Users/abeer/Projects/abp.io/abp.io.7-preview/SchoolAut0mater/services/core/.suite/entities/AcademicTerm.json"', exitCode: 1, signal: undefined, signalDescription: undefined, stdout: '', stderr: "Cannot read properties of undefined (reading 'forEach')", failed: true, timedOut: false, isCanceled: false, killed: false }
Please find the github repository and documentation below to view the steps and reproduce the issue:
--- removed by gterdem ---
We would like to create a microservice solution with a custom microservice Core and be able to generate angular components for the entities AcademicYear and AcademicTerm. We would then need to regenerate proxies for custom functions created on the server side. We would also need to additionally add lookup components for AcademicTerm. Please let me know the steps for the same and how to resolve the above issue.
Finally i was able to get the error vanish, but don't know how. below are the steps I have done.