Open Closed

bug about CLI: abp generate-proxy -t ng comand in ABP 6.0 #3875


User avatar
0
LinchArnold created

If you're creating a bug/problem report, please include followings:

  • ABP Framework version: v6.0.0
  • UI type: Angular
  • DB provider: Not Related
  • Tiered (MVC) or Identity Server Separated (Angular): ABP Module Template
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

Hi. ABP teams: I have a problem with the command abp generate-proxy -t ng after upgrade to abp 6.0. Before version 6.0, for instance I create a module template that is AbpModule5, I use abp generate-proxy -t ng -m abpModule5 -a AbpModule5 --target AbpModule5 to generate proxies for angular library: AbpModule5. It worked as expect.

But for version 6.0, for instance I create a module template that is AbpModule6, I use abp generate-proxy -t ng -m abpModule6 -a AbpModule6 --target AbpModule6 to generate proxies for angular library: AbpModule6.

It Prompts: Please enter target Angular project to place the generated code. (default: workspace "defaultProject"), so I input the abpModule6,

After that, it shows [Proxy Config Not Found] There is no JSON file at "projects/abp-module6/abpModule6/src/proxy/generate-proxy.json". (The actual path for generate-proxy.json is projects/abp-module6/src/lib/proxy/generate-proxy.json)

So I cannot generate proxies for angular library properly in ABP 6.0.

As the suite tool generate Angular Library in projects/project-name/src/lib/, no matter what target project for The Please enter target Angular project to place the generated code. (default: workspace "defaultProject"), the Proxy Config projects/abp-module6/{target project}/src/proxy/generate-proxy.json will never found.

By the way, if I use the CLI abp generate-proxy -t ng for angular library by mistakes, would you provide a correct way for use this command.

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

5 Answer(s)
  • User Avatar
    0
    LinchArnold created

    Hi, support team, it has been 5 days, any information?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    muhammedaltug created

    Hello,

    Did you update your angular version to 14?

    Can you send me the result of the following command?

    > yarn why @abp/ng.schematics
    
    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    LinchArnold created

    Hi, muhammedaltug: I had update my angular version to 14. and update the angular packages to version 14 either.

    And this is result of yarn why @abp/ng.schematics:

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    kbalashanmugam created

    I had a similar issue when upgrading to ABP 6.0.

    What fixed it is downgrading ng-schematics to version 5.2.2

    "@abp/ng.schematics": "~5.2.2",

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    muhammedaltug created

    Hello

    The bug was fixed with this issue. The fix will be available with the 6.0.2 version.

    Also, you can use the following command

    ng generate @abp/ng.schematics:proxy-add --target=ProjectName --source=ProjectName
    
    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.