duffman / tspath

TypeScript path alias resolver
GNU Lesser General Public License v2.1
151 stars 33 forks source link

TypeError: chalk.red.bold is not a function #45

Open DiefBell opened 2 years ago

DiefBell commented 2 years ago

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 commented 2 years ago

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.

TheMossConcept commented 8 months ago

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

wyllys66 commented 1 day ago

Anyone have any ideas about this one? This is still happening 2 years later. Chalk version 5.3.0, tspath 2.6.8