Base solution for your next web application
Open Closed

Unable to create entity using Power tool with missing service-proxies on Angular for the entity being created showing as error message #7746


User avatar
0
Tesfayekb created

The following error message appears while trying to create a country entity using ASP power tool.

Error message:

ERROR in ./src/shared/service-proxies/service-proxy.module.ts 20:16-55 "export 'CountriesServiceProxy' (imported as 'ApiServiceProxies') was not found in './service-proxies' ERROR in ./src/app/admin/address/countries/countries.component.ts 146:71-92 "export 'CountriesServiceProxy' was not found in '@shared/service-proxies/service-proxies' ERROR in ./src/app/admin/address/countries/countries.component.ts 146:112-133 "export 'CountriesServiceProxy' was not found in '@shared/service-proxies/service-proxies' ERROR in ./src/app/admin/address/countries/create-or-edit-country-modal.component.ts 91:71-92 "export 'CountriesServiceProxy' was not found in '@shared/service-proxies/service-proxies' ERROR in ./src/app/admin/address/countries/create-or-edit-country-modal.component.ts 91:112-133 "export 'CountriesServiceProxy' was not found in '@shared/service-proxies/service-proxies' ERROR in ./src/app/admin/address/countries/view-country-modal.component.ts 38:33-43 "export 'CountryDto' was not found in '@shared/service-proxies/service-proxies' ERROR in ./src/app/admin/address/countries/create-or-edit-country-modal.component.ts 39:28-50 "export 'CreateOrEditCountryDto' was not found in '@shared/service-proxies/service-proxies' ERROR in ./src/app/admin/address/countries/create-or-edit-country-modal.component.ts 45:31-53 "export 'CreateOrEditCountryDto' was not found in '@shared/service-proxies/service-proxies' ERROR in ./src/app/admin/address/countries/view-country-modal.component.ts 37:25-45 "export 'GetCountryForViewDto' was not found in '@shared/service-proxies/service-proxies' i 「wdm」: Failed to compile.

ERROR in src/app/admin/address/countries/countries.component.ts(3,10): error TS2724: Module '"C:/Users/.../angular/src/shared/service-proxies/service-proxies"' has no exported member 'CountriesServiceProxy'. Did you mean 'AccountServiceProxy'?
src/app/admin/address/countries/countries.component.ts(3,33): error TS2305: Module '"C:/Users/.../angular/src/shared/service-proxies/service-proxies"' has no exported member 'CountryDto'.
src/app/admin/address/countries/create-or-edit-country-modal.component.ts(4,10): error TS2724: Module '"C:/Users.../angular/src/shared/service-proxies/service-proxies"' has no exported member 'CountriesServiceProxy'. Did you mean 'AccountServiceProxy'?
src/app/admin/address/countries/create-or-edit-country-modal.component.ts(4,33): error TS2305: Module '"C:/Users/.../angular/src/shared/service-proxies/service-proxies"' has no exported member 'CreateOrEditCountryDto'.
src/app/admin/address/countries/view-country-modal.component.ts(3,10): error TS2305: Module '"C:/Users/.../angular/src/shared/service-proxies/service-proxies"' has no exported member 'GetCountryForViewDto'.
src/app/admin/address/countries/view-country-modal.component.ts(3,32): error TS2305: Module '"C:/Users/.../angular/src/shared/service-proxies/service-proxies"' has no exported member 'CountryDto'.
src/shared/service-proxies/service-proxy.module.ts(8,27): error TS2551: Property 'CountriesServiceProxy' does not exist on type 'typeof import("C:/Users/.../angular/src/shared/service-proxies/service-proxies")'. Did you mean 'AccountServiceProxy'?

1 Answer(s)