nestjs-boilerplate
nestjs-boilerplate copied to clipboard
Got error when try command migrate:status
Describe the bug The bug occurs when try migrate status command
To Reproduce Steps to reproduce the behavior:
- Run command: "node cli migrate:status"
- 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 you have to change from
import * as chalk from 'chalk';
to import chalk from 'chalk';
Hope this help you.