I started a new micro service solution with a new installation of everything and using 9.1
I am encountering the below issue while generating the UI for angular using Abp Suite :
025-03-11 22:03:34.292 -07:00 [INF] Running the Angular Schematics command:
node run-schematics.mjs "C:/SourceCode/xxxServices/apps/angular/.suite/schematics/node_modules/.bin/ng" g ".suite/schematics/collection.json:entity" app-nolayers-pro xxxServices.AIService "C:/SourceCode/xxxServices/services/ai/.suite/entities/TestPage.json" "C:/SourceCode/xxxServices/apps/angular"
2025-03-11 22:03:36.033 -07:00 [INF] Angular Schematics command failed.
C:\SourceCode\xxxServices\apps\angular\.suite\schematics\node_modules\execa\lib\error.js:60
error = new Error(message);
^
Error: Command failed with exit code 1: .suite/schematics/node_modules/.bin/ng g .suite/schematics/collection.json:entity --template app-nolayers-pro --target xxxServices.AIService --source C:/SourceCode/xxxServices/services/ai/.suite/entities/TestPage.json
[1m[31m[Project Not Found] A project matching entity solution name or a default project does not exist in your Angular workspace.[39m[22m
at makeError (C:\SourceCode\xxxServices\apps\angular\.suite\schematics\node_modules\execa\lib\error.js:60:11)
at handlePromise (C:\SourceCode\xxxServices\apps\angular\.suite\schematics\node_modules\execa\index.js:118:26)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async file:///C:/SourceCode/xxxServices/apps/angular/.suite/schematics/run-schematics.mjs:6:20 {
shortMessage: 'Command failed with exit code 1: .suite/schematics/node_modules/.bin/ng g .suite/schematics/collection.json:entity --template app-nolayers-pro --target xxxServices.AIService --source C:/SourceCode/xxxServices/services/ai/.suite/entities/TestPage.json',
command: '.suite/schematics/node_modules/.bin/ng g .suite/schematics/collection.json:entity --template app-nolayers-pro --target xxxServices.AIService --source C:/SourceCode/xxxServices/services/ai/.suite/entities/TestPage.json',
escapedCommand: '".suite/schematics/node_modules/.bin/ng" g ".suite/schematics/collection.json:entity" --template app-nolayers-pro --target xxxServices.AIService --source "C:/SourceCode/xxxServices/services/ai/.suite/entities/TestPage.json"',
exitCode: 1,
signal: undefined,
signalDescription: undefined,
stdout: '',
stderr: '\x1B[1m\x1B[31m[Project Not Found] A project matching entity solution name or a default project does not exist in your Angular workspace.\x1B[39m\x1B[22m',
failed: true,
timedOut: false,
isCanceled: false,
killed: false
}
Node.js v22.14.0
After I upgrade from 9.0 to 9.1 I get the following errors and its all over the place.
./node_modules/@volosoft/ngx-lepton-x/fesm2022/volosoft-ngx-lepton-x.mjs:1030:49-70 - Error: export 'provideAppInitializer' (imported as 'provideAppInitializer') was not found in '
I deleted node+modules folder and yarn.lock file but no luck.
What should i do ?
Are you sure you were able to run the last set of commands :
abp generate-proxy -t ng -u <ServiceUrl> -m myservice1 --target my-service-1
abp generate-proxy -t ng -u <ServiceUrl> -m myservice1 --target my-service-2
Can you put the screenshot here which shows the proxies are being generated, I tried and it gives me error.
I tried with the first one and it gives the below error :
[Invalid Module] Backend module "CoreService" does not exist in API definition.
When I did run the second service this is what I am getting :
[Project Not Found] Either define a default project in your workspace or specify the project name in schematics options.
The set of commands are identical barring the parameter values.
I need some workable solution every time I am raising an issue I get a response that you are able to replicate the issue and then I get a half baked and tested solution from your end.
Please send me a workable solution and do send me your code to verify that
Here are my observations :
When I use the target and the project name which is essentially the sub folder name in the angular folder it does creates the proxies but it creates here : projects/project folder(e.g.XYZ)/src/lib/proxy/generate-proxy.json
XYZ is the microservice folder
But the first microservice proxies which I created without the project name gets created here : projects/ABC/project folder(e.g.ABC)/app/proxy/generate-proxy.json
ABC is the solution name.
I want to understand where exactly the proxies has to be created when there are multiple microservices so that the whole thing will work fine.
There needs to be very clear cut documentation around generating proxies for Angular project so that no one has to go through what I am going through.
I am reopening this issue again via a different ticket as it was closed .
The example you provided I saaw is you tried with only 1 new micro service. If you read my issue carefully , the issue comes in when you go and generate the proxies for the second microservice.
So try to generate the proxies for the second microservice and check.
By the way , I tried your solution and the same issue exists.
But I believe Abp Studio doesn't allow to create proxy for Angular, is my understanding correct here?
I am using Angular as my front end so why should I create proxy for C#. Is my understanding not correct here about proxy generation?
The suite doesn't generate the Angular code until you run generate-proxy after using Abp Suite. So the same issue will happen, please provide me a work around until you fix this issue
I use the Abp Studio to add a new Microservice. Once that's complete I go to the Angular root folder and use the command :
abp generate-proxy -t ng -url http://localhost:44315 -m servicename
Note: When I do this process for the first microservice I add it works without issues. But when I add the second microservice thats when the problem begins when creating the proxies :
abp generate-proxy -t ng -url http://localhost:44355 -m servicename2
Also till this point I haven't used the Abp Suite to create any pages or anything.
Am I missing something here ?
@anjali I have been working on this issue for multiple days and I tried everything trick in the book but unable to solve this issue. Please escalate this issue so that it can be resolved. I need a well thought out solution not jumping from one link to another