Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

ASP.NET Zero Power Tools - Error: No Exported Member #4637


User avatar
0
cyklussoftware created

I am working through the PhoneBookDemo for ASP.NET Core + Angular in combination with the brand new Power Tools.

On a brand new project, I add a new Entity called TSEvent. It has a single property (for testing purposes) called Name.

When I try to compile using "npm start", I am given errors:

create-or-edit-tSEvent-modal.component.ts: error TS2305: Module 'service-proxies' has no exported member 'TSEventServiceProxy'.
create-or-edit-tSEvent-modal.component.ts: error TS2305: Module 'service-proxies' has no exported member 'CreateOrEditTSEventDto'.
tSEvent.component.ts: error TS2305: Module 'service-proxies' has no exported member 'TSEventServiceProxy'.
tSEvent.component.ts: error TS2305: Module 'service-proxies"' has no exported member 'TSEventDto'.
service-proxy.module.ts: error TS2551: Property 'TSEventServiceProxy' does not exist on type 'typeof service-proxies'. Did you mean 'TenantServiceProxy'?

Is this a bug in the Power Tools? Do the Power Tools work with ASP.NET Core + Angular project types?


5 Answer(s)
  • User Avatar
    0
    yekalkan created

    Hi,

    Have you run NSwag?

  • User Avatar
    0
    cyklussoftware created

    Assuming you mean the Swagger API, yes it runs.

  • User Avatar
    0
    cyklussoftware created

    Let me add that I am using a Combined Solution in Visual Studio 2017 and the Angular project worked fine before I used the Power Tools

  • User Avatar
    0
    aaron created
    Support Team

    Assuming you mean the Swagger API, yes it runs.

    No, see the documentation on NSwag: https://www.aspnetzero.com/Documents/Development-Guide-Angular#nswag

  • User Avatar
    0
    cyklussoftware created

    Running NSwag was what I needed. I overlooked this. Thank you!