Comments (8)
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.
error.js
throw new Error('error message');
from tsx.
Ok, this is my errors in Node.js
from tsx.
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
from tsx.
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.
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.
I'm not sure what you mean, but a pull request will help me understand what you're doing.
Thanks!
from tsx.
Pull Request #20
from tsx.
Found a simple solution!
Thanks for your help @tachibana-shin
from tsx.
Related Issues (20)
- Typescript REPL HOT 1
- Multiline input in Typescript REPL
- Feature request: Extend 'tsx watch' for run command on detects file changes HOT 2
- Parse error when using classes and complicated hashbangs
- Script not running when node=21, type="module", watchmode is enabled, is importing from "node:process" and using turborepo HOT 1
- Support `--input-type=ts` HOT 2
- tsx can't run code with endent HOT 3
- Is Bundle / Compile command planned? HOT 1
- Regression with MikroORM introduced with tsx v4.9.1 HOT 2
- Regression in 4.9.1 – Cannot find module (…) Did you mean to import "….js"? HOT 2
- Modules imported dynamically from an absolute path are not loaded/handled by tsx v4.9.1 HOT 3
- 💅 Logo early preview and feedback
- `node:assert`'s `assert.ok(false)` is really slow when using tsx HOT 5
- Unexpected `top-level await error` for `type: module` + top level await in `node_modules` HOT 1
- [ESM / Node v22] Broken import of a correctly bundled library HOT 3
- Incompatible with `import-in-the-middle` loader HOT 4
- Parsing error when using variable `of` HOT 5
- Cannot be used with Nuxt HOT 3
- c8 incorrectly reports 100% coverage when using tsx HOT 2
- tsx fails to find aliased imports from workspace dependencies HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tsx.