Open Closed

abp generate-proxy -t ng Delete all prev models and services #4213


User avatar
0
peyman@debtrak.com created
  • ABP Framework version: v5.0.0
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes We update backend and front project , after update when I run abp generate-proxy -t ng command , all generated proxies and models and services get deleted. I Checked /api/abp/api-definition and I have all services and Dtos there.

1 Answer(s)
  • User Avatar
    0
    mahmut.gundogdu created

    The ABP CLI and app versions must be identical. I have tested the rel-5 app with the latest stable version of the ABP CLI. Although we usually advise using the most recent version of ABP, you might use this command to generate a proxy..

     yarn ng g @abp/ng.schematics:proxy-add
    
    // or add package.json as script and run with npm
    //    "generate-proxy":"ng g @abp/ng.schematics:proxy-add"
    npm run generate-proxy
    //or 
    npx ng g @abp/ng.schematics:proxy-add
    

    The command will execute the local version of the schematics. It will create proxies successfully.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 10, 2024, 06:38