Skip to content

Docker image can not be build

I tried to build a docker image for the current version of the main branch (commit hash: 20e67403). The docker build Failed with following error:

Step 9/30 : RUN yarn build
 ---> Running in 250ca5880461
yarn run v1.22.19
$ rimraf dist
$ nest build
src/client/nats.client.ts:9:6 - error TS1239: Unable to resolve signature of parameter decorator when called as an expression.
  Argument of type 'undefined' is not assignable to parameter of type 'string | symbol'.

9     @Inject(NATSServices.SERVICE_NAME) private natsClient: ClientProxy,
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Found 1 error(s).

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
The command '/bin/sh -c yarn build' returned a non-zero code: 1
##[error]The command '/bin/sh -c yarn build' returned a non-zero code: 1
##[error]The process '/usr/bin/docker' failed with exit code 1
Edited by Christoph Becker