Open Closed

Self reference does not generate angular code as expected #4670


User avatar
0
hadiddev created

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 Answer(s)
  • User Avatar
    0
    salih created
    Support Team .NET Developer

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

  • User Avatar
    0
    hadiddev created

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

    Hi,

    Still the same error

  • User Avatar
    0
    mahmut.gundogdu created

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

  • User Avatar
    0
    hadiddev created

    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 v9.1.0-preview. Updated on November 11, 2024, 11:11