Marak / colors.js

get colors in your node.js console
https://github.com/Marak/colors.js
Other
5.16k stars 446 forks source link

Broken functionality? #275

Closed mk360 closed 4 years ago

mk360 commented 4 years ago

For some reason even I am not sure of, attempting to use Capture d’écran du 2020-07-26 00-07-46 yields an error stating that Colors.green is not a function, even though it was working before (before as in a week ago), and the TS type is telling me that what I'm doing is right. I might be wrong, I might've missed something, but I'm really not sure what it is. This package is a core tool in my project and it would be really bad to remove it.

mikeerickson commented 4 years ago

How are you importing the module?

mk360 commented 4 years ago

Never mind, tried the default import way (instead of import * as whatever from "colors" and everything seems to work. My bad, should've checked before opening this issue.