Open Closed

Cannot read properties of null (reading 'children') #5691


User avatar
0
aksogut created
  • ABP Framework version: 7.3.2
  • UI Type: Angular
  • Database System: EF Core (SQL Server,)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace:
  • ➜ angular git:(main) ✗ abp generate-proxy -t ng ABP CLI 7.3.2 Cannot read properties of null (reading 'children')
  • Steps to reproduce the issue: "Cannot read properties of null (reading 'children')" Hello, I'm getting this error when generating angular code, but I can't find where the error is coming from. I think it's caused by the service, I'm getting the same error in an empty angular project.

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

    Hello aksogut,

    I tried to reproduce the issue but I am unable.

    Could you please elaborate more about steps to reproduce the issue.

    I think there is no issue with command abp generate-proxy -t ng please check whether you are missing any Dto or Recheck your AppService , is any thing missing. You may refer following document for service proxy generation. ` https://docs.abp.io/en/abp/latest/Tutorials/Part-2?UI=NG&DB=EF#service-proxy-generation

    please let me know If you still facing the issue or you may share some details for which api is failing so that we can check issue.

    Thank you, Anjali

  • User Avatar
    0
    aksogut created

    It's probably a problem with the services. But since we could not get a detailed error message, we could not understand what the problem was. I am sending you the swagger json file. We tried to create typscript services in nswag and it did not give an error.Json File Swagger

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello aksogut,

    Could you please share your solution so we can have a look at the issue?

    please share to support@abp.io with mentioning the ticket number.

    Thank you, Anjali

  • User Avatar
    0
    aksogut created

    Hello, I solved the problem. It was caused by the service I created with Task<List<LookupDto<Guid>> signature. When I fixed the Task<PagedResultDto<LookupDto<Guid>> signature in this way, the problem was solved. The main problem is that there is no explanatory message. But it's not about abp, it's about npx.

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello aksogut,

    Hope you doing well.

    Can we close this ticket if your query is resolved? Please confirm.

    Awaiting for your valuable response.

    Thank You, Anjali

  • User Avatar
    0
    adem_nuwency created

    Yes, resolved.

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello aksogut,

    Thanks for confirming we are closing it.

    Thank you, Anjali

Made with ❤️ on ABP v9.1.0-preview. Updated on December 05, 2024, 12:19