Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Error at yarn build #59

Open
Tharak-N opened this issue Apr 1, 2024 · 1 comment
Open

Build Error at yarn build #59

Tharak-N opened this issue Apr 1, 2024 · 1 comment

Comments

@Tharak-N
Copy link

Tharak-N commented Apr 1, 2024

i am getting this error when trying to build the docker image.

=> [ 6/13] RUN yarn install 34.9s
=> [ 7/13] RUN npm install -g [email protected] 27.0s
=> ERROR [ 8/13] RUN yarn build 7.4s

[ 8/13] RUN yarn build:
0.348 yarn run v1.22.19
0.370 $ lerna run build --stream
1.097 lerna notice cli v7.3.0
1.175 lerna info versioning independent
1.175 lerna info Executing command in 9 packages: "yarn run build"
1.337 @radicalimaging/static-cs-lite: $ echo "No build yet" && exit 0
1.347 @radicalimaging/static-cs-lite: No build yet
1.347 @radicalimaging/static-wado-util: $ echo "No build yet" && exit 0
1.357 @radicalimaging/static-wado-util: No build yet
1.537 @radicalimaging/static-wado-plugins: $ echo "No build yet" && exit 0
1.540 @radicalimaging/static-wado-creator: $ echo "No build yet" && exit 0
1.546 @radicalimaging/static-wado-plugins: No build yet
1.548 @radicalimaging/static-wado-creator: No build yet
1.725 @radicalimaging/s3-deploy: $ yarn copyFiles && npx tsc
1.729 @radicalimaging/static-wado-webserver: $ echo "No build yet" && exit 0
1.732 @radicalimaging/static-wado-scp: $ echo "No build yet" && exit 0
1.739 @radicalimaging/static-wado-webserver: No build yet
1.743 @radicalimaging/static-wado-scp: No build yet
1.893 @radicalimaging/s3-deploy: $ cp -R lib build
7.306 @radicalimaging/s3-deploy: lib/static-site.ts(29,11): error TS6133: 'oac' is declared but its value is never read.
7.368 @radicalimaging/s3-deploy: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
7.368 @radicalimaging/s3-deploy: error Command failed with exit code 2.
7.377 lerna ERR! yarn run build exited 2 in '@radicalimaging/s3-deploy'
7.393 error Command failed with exit code 2.
7.393 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.


Dockerfile:10

8 | RUN npm install -g [email protected]
9 | # RUN npm install typescript
10 | >>> RUN yarn build
11 | RUN yarn link:exec
12 | RUN mkdir /dicomweb

ERROR: failed to solve: process "/bin/sh -c yarn build" did not complete successfully: exit code: 2
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

i see the "oac" instance of cloud front in s3-deploy/lib/static-site.ts is not used anywhere, so i tried to use that variable in console.log() but still facing the issue.

can you guys please help me in this.
Thank you

@igoroctaviano
Copy link
Member

igoroctaviano commented Apr 8, 2024

@wayfarer3130 same here. I recommend adding a GitHub action to run a build for every pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants