aries-acapy-controllers icon indicating copy to clipboard operation
aries-acapy-controllers copied to clipboard

Alice controller fails while building

Open laserguy opened this issue 1 year ago • 6 comments

I get the following error while running the command: LEDGER_URL=http://test.bcovrin.vonx.io ./run_demo webstart

[email protected] build /app ng build

This version of CLI is only compatible with Angular versions ^16.0.0, but Angular version 13.2.7 was found instead.

Please visit the link below to find instructions on how to update Angular. https://update.angular.io/

npm ERR! code ELIFECYCLE npm ERR! errno 3 npm ERR! [email protected] build: ng build npm ERR! Exit status 3 npm ERR! npm ERR! Failed at the [email protected] build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2024-01-16T11_13_39_583Z-debug.log ERROR: process "/bin/sh -c npm run build" did not complete successfully: exit code: 3

I installed the latest version of angular as well on my machine, but nothing changed.

I also tried to built locally but ran into same error:

npm ERR! While resolving: [email protected] npm ERR! Found: @angular/[email protected] npm ERR! node_modules/@angular/compiler-cli npm ERR! dev @angular/compiler-cli@"~13.2.2" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer @angular/compiler-cli@"^16.0.0" from @angular-builders/[email protected] npm ERR! node_modules/@angular-builders/custom-webpack npm ERR! dev @angular-builders/custom-webpack@"^16.0.1" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

laserguy avatar Jan 16 '24 11:01 laserguy

The same thing happens when I build through the docker

laserguy avatar Jan 16 '24 11:01 laserguy

I have have the sample problem also

Xuanye-Zhang avatar Jan 19 '24 07:01 Xuanye-Zhang

I reverted the code back to the previous commit(2 months back) for the alice-controller, now everything works.

laserguy avatar Jan 23 '24 14:01 laserguy

@amanji — something for you to look when you get a chance. Or if anyone else wants to help out and fix this, please do.

Sorry for the issue.

swcurran avatar Jan 23 '24 18:01 swcurran

I think Angular just needs an update. I'll take a crack at it during some down time.

amanji avatar Jan 23 '24 18:01 amanji

I took a crack at running and the angular issue persists. Looks like we need 16.0.0 or greater

H4LL avatar Apr 15 '24 22:04 H4LL

facing the same issue tried runnning locally to no success

Maxino22 avatar May 15 '24 09:05 Maxino22

@amanji — can you add this to your list to take a look at? Thanks

swcurran avatar May 15 '24 14:05 swcurran

Added to the project board.

amanji avatar May 15 '24 17:05 amanji

I got mine working by using the angular update link provided https://update.angular.io/?v=13.0-16.0 updated from version 13 to 16 then updated the npm version via Dockerfile in the alice-controller RUN npm install -g [email protected] and finally forced some dependencies RUN npm install --force

facing the same issue tried runnning locally to no success

Maxino22 avatar May 16 '24 07:05 Maxino22

@Maxino22 — great if you could put in a PR. If not, @amanji — what is needed is above ^^^^.

swcurran avatar May 16 '24 13:05 swcurran

@Maxino22 — great if you could put in a PR. If not, @amanji — what is needed is above ^^^^.

#107 Done

Maxino22 avatar May 16 '24 14:05 Maxino22

Resolved by #107

amanji avatar May 16 '24 15:05 amanji