Code Monkey home page Code Monkey logo

Comments (8)

privatenumber avatar privatenumber commented on May 18, 2024

@tachibana-shin

Can you provide a screenshot of what it's supposed to look like?

My errors in Node.js aren't colored so this may be expected behavior.

Screen Shot 2022-05-21 at 2 43 58 AM

error.js

throw new Error('error message');

from tsx.

tachibana-shin avatar tachibana-shin commented on May 18, 2024

Ok, this is my errors in Node.js

image

from tsx.

tachibana-shin avatar tachibana-shin commented on May 18, 2024

hình ảnh

Report by@tachibana-shin đây

for this example i would expect it to have the same color as when i run node --loader @esbuild-kit/loader main.ts
image

from tsx.

privatenumber avatar privatenumber commented on May 18, 2024

I investigated this, and I'm not sure if there's a solution.

We pipe the stderr here so that experimental warnings can be removed.

It can be changed to inherit to support colors (TTY), but we lose suppressing warnings.

Alternatively, we can look for another way to suppress warnings (eg. in-process), but I haven't found a way.

from tsx.

tachibana-shin avatar tachibana-shin commented on May 18, 2024

I wrote a filter function for stderr to solve this problem.

But because the automatic feature of v8 is too confidential I cannot overcome it so the error message Error: <message error> will become Error:<message error>. I use 「:」in Japanese to ignore this automatic feature

Can I make such a drag request?

from tsx.

privatenumber avatar privatenumber commented on May 18, 2024

I'm not sure what you mean, but a pull request will help me understand what you're doing.

Thanks!

from tsx.

tachibana-shin avatar tachibana-shin commented on May 18, 2024

Pull Request #20

from tsx.

privatenumber avatar privatenumber commented on May 18, 2024

Found a simple solution!

Thanks for your help @tachibana-shin

from tsx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.