chalk/chalk

build cli error

coder-fang opened this issue · 1 comments

There is a error when I want to build a cli for the fronted project and I want to tell you that error is "require() of ES modules is not supported. change the requiring code to use import(), or remove 'type': 'module' " when I use "require('chalk')" or "chalk.cyan is not a function" when I use "import('chalk')" so that I don't know how to import this outside module for my cli if I need to import the chalk.

Qix- commented

Perhaps if you had searched, you'd have found an answer quicker.

#534 (comment)