Starts in:
1 DAY
18 HRS
41 MIN
27 SEC
Starts in:
1 D
18 H
41 M
27 S
Open Closed

ABP Suite does not generate Angular UI in 3.1.2 or 3.2.0 #458


User avatar
0
Ryan.sposato@ethany.com created

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

  • ABP Framework version: v3.1.2
  • UI type: Angular
  • Tiered (MVC) or Identity Server Seperated (Angular): no
  • Exception message and stack trace: None
  • Steps to reproduce the issue:

I created a new entity in Abp Suite version 3.1.2. It completes the process successfully with zero errors.

It says the Angular UI has been created but nothing has been modified in the angular folder at all.

Should be audit component.


9 Answer(s)
  • User Avatar
    0
    Ryan.sposato@ethany.com created

    Just updated both Abp.Suite and the Solution to 3.2.0 and still does not generate Angular UI.

  • User Avatar
    0
    alper created
    Support Team Director

    send the logs pls

    %UserProfile%\.abp\suite\logs
    
  • User Avatar
    0
    alper created
    Support Team Director

    note that you need to update your project as well. otherwise Suite v3.2 will not work on your old project.

  • User Avatar
    0
    Ryan.sposato@ethany.com created

    Everything has been updated to v3.2. Angular Project, .net core, and Abp.Suite.

    see logs where angular fails:

    
    
    2020-10-01 07:20:47.355 -04:00 [INF] 1/8 - EntityGenerateCommand started...
    2020-10-01 07:20:48.786 -04:00 [INF] 1/8 - EntityGenerateCommand completed.                           | Duration: 1426 ms.
    2020-10-01 07:20:48.787 -04:00 [INF] 2/8 - RepositoryCommand started...
    2020-10-01 07:20:49.212 -04:00 [INF] 2/8 - RepositoryCommand completed.                               | Duration: 424 ms.
    2020-10-01 07:20:49.212 -04:00 [INF] 3/8 - AppServiceCommand started...
    2020-10-01 07:20:49.402 -04:00 [INF] 3/8 - AppServiceCommand completed.                               | Duration: 189 ms.
    2020-10-01 07:20:49.402 -04:00 [INF] 4/8 - ProxyControllerCommand started...
    2020-10-01 07:20:49.435 -04:00 [INF] 4/8 - ProxyControllerCommand completed.                          | Duration: 32 ms.
    2020-10-01 07:20:49.435 -04:00 [INF] 5/8 - PermissionCommand started...
    2020-10-01 07:20:49.539 -04:00 [INF] 5/8 - PermissionCommand completed.                               | Duration: 103 ms.
    2020-10-01 07:20:49.539 -04:00 [INF] 6/8 - ApplicationObjectMappingCommand started...
    2020-10-01 07:20:49.601 -04:00 [INF] 6/8 - ApplicationObjectMappingCommand completed.                 | Duration: 62 ms.
    2020-10-01 07:20:49.601 -04:00 [INF] 7/8 - AngularUiGenerateWithSchematicsCommand started...
    2020-10-01 07:20:49.610 -04:00 [INF] Running the Angular Schematics command:
    npx "C:/work/code/Airosmith/Airosmith.ProjectManagementSystem/angular/.suite/schematics/node_modules/.bin/ng" g ".suite/schematics/collection.json:entity" app-pro Airosmith.ProjectManagementSystem "C:/Users/ryans/.abp/suite/solutions/116aa922-1463-41d3-a2a8-84c9e378a9b2/entities/ChangeLog.json"
    2020-10-01 07:20:52.595 -04:00 [INF] Angular Schematics command failed.
    [Root Namespace Not Found] Cannot resolve root namespace for "default" api from "ProjectManagementSystem" project.
    
    2020-10-01 07:20:52.611 -04:00 [INF] 7/8 - AngularUiGenerateWithSchematicsCommand completed.          | Duration: 3009 ms.
    
    
  • User Avatar
    1
    armanozak created

    Hi,

    There is a new environment variable introduced for code generation.

    export const environment: Config.Environment = {
      // other environment variables...
      apis: {
        default: {
          rootNamespace: "MyCompanyName.MyProjectName",
          // other environment variables...
        },
      },
    };
    

    MyProjectName.MyProjectName should be replaced with your project root namespace.

    I hope this resolves the issue for you.

    Note: We are gradually removing NGXS from the project. A store for the entity will not be generated and was actually of almost no use.

  • User Avatar
    0
    Ryan.sposato@ethany.com created

    Thanks, that fixed the issue.

    It did make some weird model interfaces:

    export interface ProjectManagementchangeLogsChangeLogCreateDto {
      screen: string;
      action: string;
      oldValue: string;
      newValue: string;
      actionUser: string;
      actionTime: string;
    }
    

    When the actually service was only looking for ChangeLogCreateDto. I'm sure I may have a setting wrong somewhere. Any idea what it might be?

  • User Avatar
    0
    armanozak created

    Hi,

    It is really difficult to guess, but try the following to see if anything changes.

    1. Check package.json to see if the latest stable version (v3.2) of @abp/ng.schematics is installed in your project. Install it if not.
    2. Check if ABP CLI has the latest version (v3.2). Update your CLI if not.
    3. Run abp generate-proxy

    Please let me know if the interface name changes.

  • User Avatar
    0
    Ryan.sposato@ethany.com created

    Same issue. Everything is updated to v3.2. It's appending the project name before each of the class names.

  • User Avatar
    0
    armanozak created

    Hi,

    If nothing has changed, then the code ABP Suite generates is accurate. Something seems off with the project itself.

    Can we close this issue?

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