Open Closed

Generate proxy issue (Angular) #3185


User avatar
0
papusa created

abp generate-proxy -t ng command is throwing an exception on a macOS (Monterey 12.4) using ABP CLI v5.2.1.

I cannot reproduce it on my windows pc, looks like problem is related to macOS in general or to that concrete mac. Updating abp cli and other npm packages didn't solve the issue.

Any ideas how to fix the problem?

  • ABP Framework version: v5.2.1
  • UI type: Angular
  • DB provider: EF Core
  • Node version: 16.15.1
  • NPM version: 8.12.0 (have also tried on previous versions)

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

    Hi,

    Can you update to 5.2.2 version and try again?

  • User Avatar
    0
    papusa created

    Hi,

    I did already. It didn't help, new errors appear. Unknown option: '' and Unknown option: --url. Version 5.2.1 works at least on my windows pc, 5.2.2 is throwing these errors on every machine we've tried.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Try: abp generate-proxy -t ng -m app -u <Your back-end url.>

  • User Avatar
    0
    papusa created

    Unfortunately, it doesn't work as well.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    We had the problem before https://support.abp.io/QA/Questions/3092/Error-when-trying-to-use-abp-generateproxy--t-ng--m-identity But we fixed it

    Maybe ABP CLI can not work on macOS as well, we will check it.

  • User Avatar
    0
    papusa created

    Hi,

    We had the problem before https://support.abp.io/QA/Questions/3092/Error-when-trying-to-use-abp-generateproxy--t-ng--m-identity But we fixed it

    Maybe ABP CLI can not work on macOS as well, we will check it.

    Unknown option issue on version 5.2.2 is appearing on windows PCs too, it is not only mac problem :(

  • User Avatar
    0
    muhammedaltug created

    Hello,

    Url parameter for angular proxy generation supported in abp cli 5.2.2 and @abp/ng.schematics package version 5.2.2. But there is a bug in version 5.2.2 which is abp generate-proxy command doesn't work without url parameter. It is fixed in 5.3.0-rc.3 and it will be fixed in version 5.2.3. If you update ABP Cli and @abp/ng.schematics package versions to 5.2.2 or 5.3.0-rc.3 you can pass url parameter.

    The error seems related to got library. I found a discussions in rxjs repo and found an issue in got library. We will try to understand cause of this error with observing related library issues. By the way are the node versions same in both machines ? Proxy generation works in Macos Catalina, also we will try in Macos Monterey.

  • User Avatar
    0
    papusa created

    Hello,

    Url parameter for angular proxy generation supported in abp cli 5.2.2 and @abp/ng.schematics package version 5.2.2. But there is a bug in version 5.2.2 which is abp generate-proxy command doesn't work without url parameter. It is fixed in 5.3.0-rc.3 and it will be fixed in version 5.2.3. If you update ABP Cli and @abp/ng.schematics package versions to 5.2.2 or 5.3.0-rc.3 you can pass url parameter.

    The error seems related to got library. I found a discussions in rxjs repo and found an issue in got library. We will try to understand cause of this error with observing related library issues. By the way are the node versions same in both machines ? Proxy generation works in Macos Catalina, also we will try in Macos Monterey.

    Hi.

    Problem still exists:

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