- ABP Framework version: v4.4.2
- UI type: Angular
- DB provider: EF Core
- Tiered (MVC) or Identity Server Separated (Angular): yes
- Exception message and stack trace:
- Steps to reproduce the issue:"
Couldn't determinate version of "@abp/ng.schematics" package. "SchematicsAbpGenerateProxy" schema is using the keyword "id" which its support is deprecated. Use "$id" for schema ID. Cannot read property 'push' of undefined
Requesting you to provide solution on this. We go through all proxy related documents but not able solve it.
3 Answer(s)
-
1
Hello,
Is it possible for you to share the response of
/api/abp/api-definition?includeTypes=true
? -
0
Hello,
Is it possible for you to share the response of
/api/abp/api-definition?includeTypes=true
?Not possilble, But for now could you tell us what values should be passed to generate proxy for ProductService. (We have another service like ProductService)
D:\TEST Service\TEST\apps\angular>abp generate-proxy -p [12:51:23 INF] ABP CLI (https://abp.io) [12:51:23 INF] Version 4.4.2 (Stable) [12:51:26 WRN] ABP CLI has a newer stable version 4.4.3, please update to get the latest features and fixes. [12:51:26 WRN] [12:51:26 WRN] Update Command: [12:51:26 WRN] dotnet tool update -g Volo.Abp.Cli [12:51:26 WRN] [12:51:26 WRN] Couldn't determinate version of "@abp/ng.schematics" package. "SchematicsAbpGenerateProxy" schema is using the keyword "id" which its support is deprecated. Use "$id" for schema ID. ? Please enter backend module name. (default: "app") " " ? Please enter backend api name, a.k.a. remoteServiceName. (default: "default") " " ? Please enter source Angular project for API definition URL & root namespace resolution. (default: workspace "defaultProject") " " ? Please enter target Angular project to place the generated code. (default: workspace "defaultProject") " "
[Project Not Found] Either define a default project in your workspace or specify the project name in schematics options.
@bunyamin We got above error, could you please tell us what exactly needs to be specify in double quotes. in last 2 questions we cant decide what needs to be passed! https://docs.abp.io/en/abp/latest/CLI#generate-proxy
-
0
Is this a microservice or module template?
The third question is to find out where the
environment.ts
is which contains the url of the backend. App-pro angular apps usually have default apps defined inangular.json
Please, refer to the angular docs It usually looks like thisThe fourth question is which project to generate proxies into. You need to choose one project from
angular.json
likeMyProjectName
if yourangular.json
looks like this