Closed rustdevbtw closed 10 months ago
I'm trying to use the latest versions of this library (1.1.1 and 1.1.2), but I'm getting some weird errors:
1.1.1
1.1.2
error: Uncaught TypeError: Cannot read properties of undefined (reading 'INFO') private [Types.INFO]: string = ""; ^ at https://deno.land/x/logger@v1.1.2/writer.ts:11:18
Then I checked the repo and found that types.ts has:
types.ts
const enum Types { INFO = "info", WARN = "warn", ERROR = "error", } export default Types;
However, Types is a const enum, something that isn't visible to other modules by default. Adding an export or removing that const would fix this.
Types
const
export
land on v1.1.3
I'm trying to use the latest versions of this library (
1.1.1
and1.1.2
), but I'm getting some weird errors:Then I checked the repo and found that
types.ts
has:However,
Types
is aconst
enum, something that isn't visible to other modules by default. Adding anexport
or removing thatconst
would fix this.