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 1 year ago

DiefBell commented 1 year 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 1 year 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 7 months ago

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