nestjs-boilerplate icon indicating copy to clipboard operation
nestjs-boilerplate copied to clipboard

Got error when try command migrate:status

Open tidusvn05 opened this issue 3 years ago • 1 comments

Describe the bug The bug occurs when try migrate status command

To Reproduce Steps to reproduce the behavior:

  1. Run command: "node cli migrate:status"
  2. See error dist/libs/core/src/console/dbOperations.js:54 statusList.push({ migration: migration.file, status: chalk.green('Y') });

Desktop (please complete the following information):

  • OS: MacOS
  • Node version: 16.x

Thanks!

tidusvn05 avatar Nov 03 '21 05:11 tidusvn05

@tidusvn05 you have to change from import * as chalk from 'chalk'; to import chalk from 'chalk';

Hope this help you.

TouchSek avatar Dec 15 '21 08:12 TouchSek