question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make note to readme about colors when using typescript

See original GitHub issue

To get the colors working, not only did I install the support-colors and import it into my top level app.ts, but I also needed to set the env var DEBUG_COLORS=true for it to work when using typescript

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
JoshuaVShermancommented, Jul 27, 2020

@Qix- just so you know, I was able to get this working by using npm-run-all package with -p in place of using concurrently, so it appears the problem is when using concurrently package.

0reactions
JoshuaVShermancommented, Jul 25, 2020

Ok thanks

On Sat, Jul 25, 2020, 10:40 AM Qix notifications@github.com wrote:

Yeah you’re running it in nodemon, which pipes output from your program instead of it going directly to the TTY.

This means that debug is detecting the output as piped and thus disables colors. This is expected behavior. It has absolutely nothing to do with typescript. If you didn’t run it with nodemon, it might output colors without the environment variable.

There’s nothing really to do here - this has to do with Node.js and TTY streams, not with debug or Typescript.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/visionmedia/debug/issues/773#issuecomment-663862903, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADFY3WGWCW3WF3L252F4KH3R5LVHLANCNFSM4PG7KEPA .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Make note to readme about colors when using typescript #773
This seems strange, DEBUG_COLORS should be true by default. How are you running your code? All reactions.
Read more >
How to add color to GitHub's README.md file - Stack Overflow
One way to add color to a README is by utilising a service that provides placeholder images. For example this Markdown can be...
Read more >
ansi-colors - npm
ansi-colors is the fastest Node.js library for terminal styling. A more performant drop-in replacement for chalk, with no dependencies.
Read more >
Shields.io: Quality metadata badges for open source projects
We serve fast and scalable informational images as badges for GitHub, Travis CI, Jenkins, WordPress and many more services. Use them to track...
Read more >
TypeScript - Package Control
We are excited to get your feedback and work with the community to make this plugin as awesome as possible. Note about .tmLanguage...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found