tspath icon indicating copy to clipboard operation
tspath copied to clipboard

TypeError: chalk.red.bold is not a function

Open DiefBell opened this issue 3 years ago • 3 comments

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.

DiefBell avatar Oct 19 '22 11:10 DiefBell

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.

DiefBell avatar Oct 19 '22 11:10 DiefBell

I'm facing this issue too, is there any update on it?

TheMossConcept avatar Mar 12 '24 10:03 TheMossConcept