tspath
tspath copied to clipboard
TypeError: chalk.red.bold is not a function
Description
C:\Users\Dief\Documents\Source\GLFW\rewrite-test\node_modules\tspath\parser-engine.js:331
log(chalk.red.bold("Missing required field:") + " \"" + chalk.bold.underline(key) + "\"");
^
TypeError: chalk.red.bold is not a function
Notes Chalk version installed is currently 2.4.2, however I've also manually installed chalk 2.3.0 to match what's in package.json. Same error for both.
On a related note, I'd generally recommend just not using Chalk for anything but loggers. It adds in unnecessary dependencies and I've always found it to have tiny issues like this. If you definitely want it then would be good to get it updated to a more recent version.
I'm facing this issue too, is there any update on it?