Skip to content

Build Error at yarn build #59

@Tharak-N

Description

@Tharak-N

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 lerna@5.3.0 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 lerna@5.3.0
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions