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)
-
0
Hi,
Have you run NSwag?
-
0
Assuming you mean the Swagger API, yes it runs.
-
0
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
-
0
Assuming you mean the Swagger API, yes it runs.
No, see the documentation on NSwag: https://www.aspnetzero.com/Documents/Development-Guide-Angular#nswag
-
0
Running NSwag was what I needed. I overlooked this. Thank you!