Starts in:
1 DAY
9 HRS
59 MIN
3 SEC
Starts in:
1 D
9 H
59 M
3 S
Open Closed

Angular-proxies-error-after-upgrading-to-V814 #7582


User avatar
0
sukhdeep.dhillon created
  • ABP Framework version: v8.1.4
  • UI Type: Angular
  • Database System: EF Core (SQL Server)

Hi, after upgrading to V8.1.4. I'm getting the following error when generating Angular proxies


21 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi The problem has been fixed,

    could you check if all your packages and CLI are 8.1.4 versions?

    https://github.com/abpframework/abp/issues/19656

  • User Avatar
    0
    sukhdeep.dhillon created

    I upgraded the project to V8.2.0

    now, I'm getting the following error in text template & in other proxy folders.

    error: importing duplicate types

    another screenshot: duplicate import types

    importing from wrong package @volo.abp.ng.saas/proxy

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    we plan release the patch version today https://github.com/abpframework/abp/issues/20172

  • User Avatar
    0
    sukhdeep.dhillon created

    I can see the new patch, but its 8.1.5 and my new project version is now V8.2.0. abp update command wouldn't update anything

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    we will release 8.2.1 and 8.3.0rc1 today.

  • User Avatar
    0
    sukhdeep.dhillon created

    Thanks, I will wait for your patch to be release today.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    okay : )

  • User Avatar
    0
    sukhdeep.dhillon created

    I updated my project to 8.2.1, it fixes some of the proxy generation errors like duplicated import statements. but still I can see the following errors:

    I manually changed the import statements like this to fix this issue :

    Plus, this issue is still there

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Sorry, I will ask angular team check this and answer you

  • User Avatar
    0
    sukhdeep.dhillon created

    as I have already sent you the code. you can even try on that to have more understanding about the issue.

  • User Avatar
    0
    sumeyye.kurtulus created
    Support Team Angular Expert

    Hello, I have carefully checked your case and I could not duplicate the same problem for the abp packages as you may find in this screenshot.

    If you still face the same problem, that would be the best to confirm that these lines are the same in this file angular\node_modules\@abp\ng.schematics\utils\model.js

    If this is not the case, there should be a problem with the related upgrade.

  • User Avatar
    0
    sukhdeep.dhillon created

    Hi, I don't have first screenshot folder in my source code

    but I have the following lines in the angular\node_modules\@abp\ng.schematics\utils\model.js file

    @liangshiwei has already access to my source code. you can look into that to troubleshoot the error.

  • User Avatar
    0
    sumeyye.kurtulus created
    Support Team Angular Expert

    Hello, I have carefully checked your case and one of the import problem was solved by this PR previously. I can suggest you to use related DTOs in the Application layer rather than the ones inside the domain. You can follow these documentations as a reference

    https://abp.io/docs/latest/framework/architecture/best-practices/application-services

    https://abp.io/docs/latest/framework/architecture/domain-driven-design/application-services#object-to-object-mapping

  • User Avatar
    0
    sukhdeep.dhillon created

    Hi, you are saying somewhere in the code we are directly returning domain objects instead of DTOs. let me check into that.

    how about this issue, its coming from text-template

  • User Avatar
    0
    sumeyye.kurtulus created
    Support Team Angular Expert

    I could not duplicate the same problem unfortunately

  • User Avatar
    0
    sukhdeep.dhillon created

    try to delete the proxy folder and re-generate the proxies

  • User Avatar
    0
    sukhdeep.dhillon created

    Hi, FYI, I'm able to fix the following issue

    but text-template issue is still there

  • User Avatar
    0
    sumeyye.kurtulus created
    Support Team Angular Expert

    I am pleased to hear that. Additionally, I will be addressing the other import issue as well. So, you can follow this issue within the releases 🙏If you prefer a workaround, you can replace the wrong imports with this @volo/abp.ng.text-template-management/proxy

  • User Avatar
    0
    sukhdeep.dhillon created

    Hi, I'm glad that you are able to replicate the issue on your end.

    for now, I will manually fix it. may I know when are you going to release this patch.

  • User Avatar
    0
    sukhdeep.dhillon created

    any update on new patch about fixing the proxy issue

  • User Avatar
    0
    sumeyye.kurtulus created
    Support Team Angular Expert

    Hello, since then we have published the previous patch recently, we will be releasing the next one in the upcoming week.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06