Open Closed

Angular proxy command do not generate interface in model.ts anymore #4618


User avatar
0
christophe.baille created
  • ABP Framework version: v7.0.1
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no

I have an issue since I migrate my solution from ABP 5 to 7:

I have a controller with a method to upload a file

When I generate the proxy using the command

abp generate-proxy -t ng

and try to run the angular application, I got an error because IRemoteStreamContent is not defined

In ABP 5 it was working because the command was creating a model.ts file with the definition of IRemoteStreamContent

The problem is that since I updated to ABP 7, this file is not generated anymore so I got this error.

I can pass the issue by creating the file somewhere and add the import on my file, but I will have to add the import manually each time I generate the proxy.

Any idea on how I could make this file to be generated again or if I need to add a package which reference it on my angular project?

Thanks


3 Answer(s)
  • User Avatar
    0
    christophe.baille created

    Hello,

    Any news about it please?

  • User Avatar
    0
    mahmut.gundogdu created

    I have tested. The issue is related to using interface. Proxy can generate the interface. If you IRemoteStreamContent.

    The ABP proxy couldn't create an object

    When you set Class, The ABP proxy be able to generate proxy.

  • User Avatar
    0
    christophe.baille created

    It works fine now. Thanks

Made with ❤️ on ABP v9.1.0-preview. Updated on November 01, 2024, 05:35