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

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

21 Answer(s)
  • User Avatar
    0
    liangshiwei created
    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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

    we will release 8.2.1 and 8.3.0rc1 today.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    sukhdeep.dhillon created

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    okay : )

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    sumeyye.kurtulus created
    Support Team Angular Expert

    I could not duplicate the same problem unfortunately

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    sukhdeep.dhillon created

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    sukhdeep.dhillon created

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

    but text-template issue is still there

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    sukhdeep.dhillon created

    any update on new patch about fixing the proxy issue

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 21, 2026, 06:18
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.