Starts in:
2 DAYS
5 HRS
16 MIN
18 SEC
Starts in:
2 D
5 H
16 M
18 S
Open Closed

cannot generate proxy #6951


User avatar
0
shobhit created
  • ABP Framework version: v4.3.3
  • UI Type: Angular
  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • [10:28:11 INF] ABP CLI (https://abp.io) [10:28:12 INF] Version 4.3.3 (Stable) [10:28:14 WRN] ABP CLI has a newer stable version 8.0.5, please update to get the latest features and fixes. [10:28:14 WRN] [10:28:14 WRN] Update Command: [10:28:14 WRN] dotnet tool update -g Volo.Abp.Cli [10:28:14 WRN] [10:28:14 WRN] Couldn't determinate version of "@abp/ng.schematics" package. npm WARN config global --global, --local are deprecated. Use --location=global instead. Cannot read properties of null (reading 'children')
  • Steps to reproduce the issue: Getting above error when trying to generate proxy for angular app.

6 Answer(s)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hi ,

    Please check this link https://github.com/abpframework/abp/issues/12664#issuecomment-1132397107

    Thank you.

  • User Avatar
    0
    shobhit created

    Now tried using your syntex but i got this message and just to update since last 3 years i am using following syntex "abp generate-proxy"

    [13:03:40 INF] ABP CLI (https://abp.io) [13:03:41 INF] Version 4.3.3 (Stable) [13:03:43 WRN] ABP CLI has a newer stable version 8.0.5, please update to get the latest features and fixes. [13:03:43 WRN] [13:03:43 WRN] Update Command: [13:03:43 WRN] dotnet tool update -g Volo.Abp.Cli [13:03:43 WRN] [13:03:43 WRN] Couldn't determinate version of "@abp/ng.schematics" package. npm WARN config global --global, --local are deprecated. Use --location=global instead. [Project Not Found] Either define a default project in your workspace or specify the project name in schematics options.

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello ,

    Can you once try this npm install --location=global @abp/ng.schematics

    Thank you.

  • User Avatar
    0
    shobhit created

    Thanks. Run the command as specified and then run the generaty-proxy command. Still same error.

    PS C:\myFolder> npm install --location=global @abp/ng.schematics npm WARN config global --global, --local are deprecated. Use --location=global instead. npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs

    added 306 packages, and audited 307 packages in 19s

    48 packages are looking for funding run npm fund for details

    found 0 vulnerabilities PS C:\myFolder> abp generate-proxy [16:20:15 INF] ABP CLI (https://abp.io) [16:20:16 INF] Version 4.3.3 (Stable) [16:20:18 WRN] ABP CLI has a newer stable version 8.0.5, please update to get the latest features and fixes. [16:20:18 WRN] [16:20:18 WRN] Update Command: [16:20:18 WRN] dotnet tool update -g Volo.Abp.Cli [16:20:18 WRN] [16:20:18 WRN] Couldn't determinate version of "@abp/ng.schematics" package. npm WARN config global --global, --local are deprecated. Use --location=global instead. Cannot read properties of null (reading 'children')

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    I'm thinking this might be due to your app service method signature or DTO class : https://support.abp.io/QA/Questions/5691/Cannot-read-properties-of-null-reading-%27children%27#answer-3a0d5e2c-ccee-414e-2439-f794a29e19bf

    The latest CLI version should fix this issue, you can try upgrade your CLI version.

    If you can't upgrade, you need to check your application services / DTO and update them.

  • User Avatar
    0
    shobhit created

    Thanks liangshiwei. This resolved my problem. Appriciate the efforts.

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