Aperto Chiuso

[Invalid Module] Backend module "app" does not exist in API definition. #7159


User avatar
0
kengleongps creato

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, and please first use the search on the homepage. Provide us with the following info:

  • ABP Framework version: v8.1.1
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace: [Invalid Module] Backend module "app" does not exist in API definition.
  • Steps to reproduce the issue:

I am regenerating the service proxy for product-service with the following commands and I got an invalid module error.

abp new Acme.BookStore -t microservice-pro -u angular -csf abp generate-proxy -t ng ABP CLI 8.1.1 [Invalid Module] Backend module "app" does not exist in API definition.

Next I tried to add some options based on https://gist.github.com/muhammedaltug/8969dd3ea00e902b034c8a5743165248 but it deleted the existing files, created new files on new location and most of the modules were removed from the generate-proxy.json.

abp generate-proxy -t ng -m productService -u https://localhost:44361 --target product-service ABP CLI 8.1.1 DELETE projects/product-service/src/lib/proxy/product-service DELETE projects/product-service/src/lib/proxy/products/index.ts DELETE projects/product-service/src/lib/proxy/products/models.ts DELETE projects/product-service/src/lib/proxy/products/product-public.service.ts DELETE projects/product-service/src/lib/proxy/products/product.service.ts DELETE projects/product-service/src/lib/proxy/products CREATE projects/product-service/src/lib/proxy/product-service/products/product.service.ts (1901 bytes) CREATE projects/product-service/src/lib/proxy/product-service/products/product-public.service.ts (540 bytes) CREATE projects/product-service/src/lib/proxy/product-service/products/models.ts (609 bytes) CREATE projects/product-service/src/lib/proxy/product-service/products/index.ts (103 bytes) CREATE projects/product-service/src/lib/proxy/product-service/index.ts (61 bytes) UPDATE projects/product-service/src/lib/proxy/generate-proxy.json (117160 bytes) UPDATE projects/product-service/src/lib/proxy/README.md (1000 bytes) UPDATE projects/product-service/src/lib/proxy/index.ts (80 bytes)

I would like to check whether is this the expected behavior?


2 risposte
  • User Avatar
    0
    Anjali_Musmade creato
    Team di supporto Support Team Member

    Hello,

    please check similar issue https://github.com/abpframework/abp/issues/5885#issuecomment-1146655546

    thanks

  • User Avatar
    0
    kengleongps creato

    Hello,

    please check similar issue https://github.com/abpframework/abp/issues/5885#issuecomment-1146655546

    thanks

    I have tried to add --url parameter as mentioned above.

    With that only abp and productService modules are being generated and the existing languageManagement, featureManagement and etc are being removed.

    Would like to confirm is this the expected behavior for microservice template?

Made with ❤️ on ABP v8.2.0-preview Updated on marzo 25, 2024, 15:11