खुला हुआ बंद किया हुआ

Self reference does not generate angular code as expected #4670


User avatar
0
hadiddev बनाया था

Hi All,

We started using abp framework this week and after generate entities and frontend using abp suite, we got several errors related to self reference like below:

Error: src/app/categories/category/components/category.component.html:54:34 - error TS2339: Property 'getCategoryLookup' does not exist on type 'CategoryService'.

54 [getFn]="service.getCategoryLookup" ~~~~~~~~~~~~~~~~~

Api project had a such endpoint, but the problem it doesn't exists in (angular service) proxy:

[HttpGet] [Route("category-lookup")] public Task<PagedResultDto<LookupDto<int>>> GetCategoryLookupAsync(LookupRequestDto input) { return _categoriesAppService.GetCategoryLookupAsync(input); }

Could you please advise how to avoid this issue later?

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

  • ABP Framework version: vX.X.X
  • UI type: Angular / M /7.0.2or
  • DB provider: EF C
  • Tiered (MVC) or IdentiSeparated (Angular): yes / no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

4 उत्तर (ओं)
  • User Avatar
    0
    salih बनाया था
    सहायता दल .NET Developer

    Hi, can you create it according to the document here?

  • User Avatar
    0
    hadiddev बनाया था

    Hi,
    can you create it according to the document here?

    Hi,

    Still the same error

  • User Avatar
    0
    mahmut.gundogdu बनाया था

    Could you share your Dto wıth me? (or similar for an example)

  • User Avatar
    0
    hadiddev बनाया था

    Could you share your Dto wıth me? (or similar for an example)

    Hi All,

    I re-created the mentioned entity from abp suite and that solve the problem.

Made with ❤️ on ABP v8.2.0-preview Updated on मार्च 25, 2024, 15:11