I am experiencing the following error when I try to define a class in typescript. It is meant to create a class handling logging functionality within my app. Here are some more details.
13 |
14 | abstract class LoggerConfig {
15 | constructor(public readonly dir: string) { }
16 | }
17 |
18 | class Logger {
^
TypeError: undefined is not an object (near '...class Logger {...')
at logger/index.ts:18:1
Bun v1.1.16 (macOS arm64)
I cannot for the life of me determine what is causing the source of this error.