NarHakobyan / awesome-nest-boilerplate

Awesome NestJS Boilerplate 😍, Typescript 💪, Postgres 🎉, TypeORM 🥳
https://narhakobyan.github.io/awesome-nest-boilerplate
MIT License
2.39k stars 453 forks source link

Docker-compose error TS2688: Cannot find type definition file for 'mocha' #6

Closed ruslanguns closed 5 years ago

ruslanguns commented 5 years ago

Getting this issue from starting the docker.

➜  awesome-nest-boilerplate git:(master) PORT=3000 docker-compose up
Building app
Step 1/17 : FROM node:dubnium AS dist
 ---> 4ae749096a47
Step 2/17 : COPY package.json yarn.lock ./
 ---> Using cache
 ---> 4597ae5a921e
Step 3/17 : RUN yarn install
 ---> Using cache
 ---> e0f3019b2ff5
Step 4/17 : COPY . ./
 ---> Using cache
 ---> e580a77b2ddd
Step 5/17 : RUN yarn build
 ---> Running in 96b4a48944c3
yarn run v1.16.0
$ tsc -p tsconfig.build.json
node_modules/@nestjs/microservices/external/redis.interface.d.ts(2,23): error TS2688: Cannot find type definition file for '
mocha'.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: Service 'app' failed to build: The command '/bin/sh -c yarn build' returned a non-zero code: 2
NarHakobyan commented 5 years ago

Hi @ruslanguns, thanks for the issue, we reproduced and fixed it in this commit, https://github.com/NarHakobyan/awesome-nest-boilerplate/commit/4a24219182d5c3c26b2de2be7fe44988fbdd86c6