You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Node compat: process.stdout.isTTY has only a getter #26123
It seems that it's possible to set this property in Node, but in Deno the isTTY property is only a getter; thus the error. I feel like it's likely that the package's code is weird, but this still seems like a compatability issue vs running in Node.
error: Uncaught (in worker "") (in promise) TypeError: Cannot set property isTTY of #<Writable> which has only a getter
at file:///[folder_path]/node_modules/.deno/vite-plugin- checker@0.8.0/node_modules/vite-plugin-checker/dist/esm/Checker.js:5:24
Suggestions
I'd be fine if a solution here was to add a set method, but just ignore the value to make the code work. But comparing what Node does when setting this property and doing the same would probably be a good idea.
changed the title [-]Node compat: `process.stdout.isTTY` is not a setter[/-][+]Node compat: `process.stdout.isTTY` has only a getter[/+]on Oct 10, 2024
Activity
[-]Node compat: `process.stdout.isTTY` is not a setter[/-][+]Node compat: `process.stdout.isTTY` has only a getter[/+]fix(node): make `process.stdout.isTTY` writable (denoland#26130)
csvn commentedon Oct 12, 2024
Thanks for the quick solution to this issue @marvinhagemeister 🎉