deno-library / logger

logger for deno
MIT License
24 stars 2 forks source link

TypeError: Deno.stdout.isTerminal is not a function #16

Closed lviggiani closed 1 month ago

lviggiani commented 1 month ago

With Deno 1.39.2, by executing this in VS Code...

import Logger from "https://deno.land/x/logger@v1.1.6/logger.ts";
const logger = new Logger();

I get this error:

error: Uncaught (in promise) TypeError: Deno.stdout.isTerminal is not a function
const isTTY = Deno.stdout.isTerminal();
                          ^
    at https://deno.land/x/logger@v1.1.6/stdout.ts:1:27

Am I doing anything wrong?

fuxingZhang commented 1 month ago

@UrielCh could you please take a look at and address this issue

UrielCh commented 1 month ago

Deno 1.39 is no more supported, update your deno runtime.

deno upgrade

or

brew upgrade for mac + brew.

lviggiani commented 1 month ago

Thanks. Unfortunately for the moment I cannot upgrade due to a project requirement.